Abhishek Aggarwal
2018-10-12 07:27:49 UTC
To decode API response string to JSON, *json.decode()* works fine. This
will parse a JSON string similar to
{ âResponseâ : {âResponsecodeâ : â1â , âResponseâ : âSuccessâ}}
But in my case, the response is in the form :
â{\âResponse\â : {\âResponsecode\â : \â0\â , \âResponse\â : \âSuccess\â}}â
*json.decode() *wonât work. I searched but couldnât find how to unescape
characters in a string. Please help
will parse a JSON string similar to
{ âResponseâ : {âResponsecodeâ : â1â , âResponseâ : âSuccessâ}}
But in my case, the response is in the form :
â{\âResponse\â : {\âResponsecode\â : \â0\â , \âResponse\â : \âSuccess\â}}â
*json.decode() *wonât work. I searched but couldnât find how to unescape
characters in a string. Please help
--
For more ways to connect visit https://www.dartlang.org/community
---
You received this message because you are subscribed to the Google Groups "Dart Misc" group.
To unsubscribe from this group and stop receiving emails from it, send an email to misc+***@dartlang.org.
To view this discussion on the web visit https://groups.google.com/a/dartlang.org/d/msgid/misc/45641080-337b-4a3b-8c8b-20512363fd3c%40dartlang.org.
For more ways to connect visit https://www.dartlang.org/community
---
You received this message because you are subscribed to the Google Groups "Dart Misc" group.
To unsubscribe from this group and stop receiving emails from it, send an email to misc+***@dartlang.org.
To view this discussion on the web visit https://groups.google.com/a/dartlang.org/d/msgid/misc/45641080-337b-4a3b-8c8b-20512363fd3c%40dartlang.org.