java - Org.json.JSONException: Unterminated string at character 1834 -
i fetching data webservice, parsing json string. while parsing exception: "org.json.jsonexception: unterminated string @ character 1834"
my code is,
string jsonstring=getjsonstring(response); jsonobject json = new jsonobject(jsonstring);
the string is,
[{"lotdescription":"david weekley homes traditional collection in baxter village offers floor plans featuring innovative design , unsurpassed quality. charming community combines work, play , living, within village. in baxter village, you’ll enjoy: parks, playgrounds"}]
it parsing till word "village" , raising exception while parsing " you’ll " seems html content.
what solution this?
you need add character \
.
[{"lotdescription":\"david weekley homes traditional collection in baxter village offers floor plans featuring innovative design , unsurpassed quality. charming community combines work, play , living, within village. in baxter village, you’ll enjoy: parks, playgrounds\"}]
this do.
Comments
Post a Comment