![]() |
千年单身的灌汤包 · react-native 运行 app ...· 6 月前 · |
![]() |
俊秀的熊猫 · C#写代码踩坑记录(持续更新,欢迎大家把自己 ...· 1 年前 · |
![]() |
刚失恋的回锅肉 · sqlserver实现树形结构递归查询(无限 ...· 1 年前 · |
![]() |
谦和的手电筒 · excel 复选框全选 VBA代码_百度知道· 1 年前 · |
![]() |
活泼的小蝌蚪 · 因果推断相关python库学习 (一) - 掘金· 1 年前 · |
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...!