JSON array deserialization is crashing the Dalvik VM

Posted by Sam on Stack Overflow See other posts from Stack Overflow or by Sam
Published on 2010-04-08T08:08:23Z Indexed on 2010/04/08 8:13 UTC
Read the original article Hit count: 489

Filed under:
|
|
|

I have some code grabbing a JSON array from my server and initially storing it as a string. This all works fine until I try and deserialize it using google's gson fromJson method. LogCat spits out the error:

04-08 17:46:35.163: ERROR/dalvikvm(401): Can't shrink stack: curFrame is in reserved area (0x41049000 0x410491c4)

My code that causes the error is:

String[] results = gson.fromJson(returnString, String[].class);

Can anyone shed some light on what I am doing wrong?

Cheers, Sam

© Stack Overflow or respective owner

Related posts about JSON

Related posts about android