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

Popular posts from this blog

blackberry 10 - how to add multiple markers on the google map just by url? -

php - guestbook returning database data to flash -

delphi - Dynamic file type icon -