Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialNathan Fuller
560 PointsReceiving JSONException
Exception caught: org.json.JSONException: Unterminated string at character 5902 of {........ it then lists the entire JSON response Any idea where I should look to resolve this?
Nathan Fuller
560 PointsYeah that's what I'm seeing on stack overflow, however everyone is saying it's due to how the JSON is formatted. Sometimes this exception is thrown, other times it is not. I'm assuming it may have to do with the 3rd party emulator I'm using (genymotion).
Tim Warren
877 PointsI'm also having the exact same issue when using Genymotion. However the default emulator works just fine. shrugs
1 Answer
Harry James
14,780 PointsHello,
Take a look at Hubert Maraszek's fix over here: https://teamtreehouse.com/forum/trying-to-retrieve-data-from-my-own-blog-help
It fixed my problem and should fix yours too :)
Sante Kotturi
7,434 PointsSante Kotturi
7,434 PointsI haven't made it that far in the second android project but an Unterminated string sounds like a missing " and the end of a string somewhere. Maybe?