|
|
从容的金针菇 · 关于el-table单元格合并的解决方案-阿 ...· 1 年前 · |
|
|
聪明的签字笔 · ios 约束布局 动画 ...· 2 年前 · |
|
|
乖乖的牛腩 · ASP.NET Core ...· 2 年前 · |
|
|
安静的莲藕 · Python-sqlparse解析SQL工具 ...· 2 年前 · |
|
|
玩篮球的黄豆 · scipy special gamma-掘金· 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...!