Share

LitJSON

Tracker: Bugs

5 Array of Array Deserialize erro - ID: 2876177
Last Update: Comment added ( godkane )

The following does not return the array of array.
JsonMapper.ToObject(@"[[1]]");
Just an empty array.


Nobody/Anonymous ( nobody ) - 2009-10-10 11:29

5

Open

None

Leonardo Boshell

Library

None

Public


Comment ( 1 )




Date: 2009-10-10 18:35
Sender: godkane

The fix is on line 507 of JsonMapper.cs. Check to make sure item is null.
if (item == null && reader.Token == JsonToken.ArrayEnd)
When any array ended, it would end all arrays. Another way is if not null
add, else check for arrayEnd.


Log in to comment.

Attached File

No Files Currently Attached

Change

No changes have been made to this artifact.