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 trial

Android Build a Blog Reader Android App Adapting Data for Display in a List Handling Errors Using Dialogs

Receiving 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?

I 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?

Yeah 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).

I'm also having the exact same issue when using Genymotion. However the default emulator works just fine. shrugs

1 Answer

Hello,

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 :)