|
|
温文尔雅的花卷 · 苹果指控亚马逊:卖的苹果配件90%是假货-新华网· 2 月前 · |
|
|
帅气的枇杷 · 轨道交通13号线扩能提升工程启动建设2座车站 ...· 2 月前 · |
|
|
豪气的双杠 · 抖音上那些3D动漫是用什么软件制作的?是怎么 ...· 2 年前 · |
|
|
打酱油的课本 · 蔚来ET5旅行版上市 ...· 2 年前 · |
|
|
行走的丝瓜 · 愚公移山(2008年霍建起执导的人物传记电影 ...· 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...!