![]() |
冷冷的松鼠 · 全面注册制背景下上市挂牌公司未披露的对赌协议 ...· 4 月前 · |
![]() |
满身肌肉的剪刀 · 记者探寻榕城老街,感受古城千年文脉和人间烟火 ...· 8 月前 · |
![]() |
精明的手术刀 · 高新民:“反对‘四风’转作风”· 1 年前 · |
![]() |
谈吐大方的茄子 · 给教授写信到底怎么称呼? - 知乎· 1 年前 · |
![]() |
痛苦的红金鱼 · 哥布林之巢 - 抖音· 2 年前 · |
Give a try with the replace method on the output that you are receiving before processing it further.
Use this method -
String transformedText = ParserOutput.replace('""', '"');
Here ParserOutput is the string that contains the output to be transformed.
Thanks
All Answers
So your example would look like this:
"compannyName":"\"schiing\" Immobien & Co Lingasse KG"
PFB my JSON Output :
"mfr_part_number_mfrpn": ""PROMINENT,
BT5B0713P"
So my issue is if I have "Double Quotes" in my Out from DB then it is throwing me exceptions like
System.JSONException: Unexpected character ('P' (code 80)): was expecting comma to separate OBJECT entries at input location
Unexpected character ('<' (code 60)): expected a valid value (number, String, array, object, 'true', 'false' or 'null') at input location
System.JSONException: Unexpected character ('R' (code 82)): was expecting double-quote to start field name at input location
So bacically i want some workaround to delete off the Double quote in my Output and the above should become like :
"mfr_part_number_mfrpn": "PROMINENT,
BT5B0713P"
Give a try with the replace method on the output that you are receiving before processing it further.
Use this method -
String transformedText = ParserOutput.replace('""', '"');
Here ParserOutput is the string that contains the output to be transformed.
Thanks
Awesome my issue got solved...!