JSON array deserialization is crashing the Dalvik VM
- by Sam
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