Share

LitJSON

The forum address has changed, you have been automatically redirected. Please update any bookmarks to use the new URL.

Subscribe

Bug in reading nested arrays

You are viewing a single message from this topic. View all messages.

  1. 2008-05-06 02:11:02 UTC
    Thanks Jeremy! That fixed the problem I mentioned.

    I also made an analogous change to the follow code, as it looks very similar. I'm not 100% sure it was necessary.

    while (true) {
    object item = ReadValue (elem_type, reader);
    if (reader.Token == JsonToken.ArrayEnd)
    break;

    list.Add (item);
    }

    (i.e. added (item==null) && into the condition)
< Previous | 1 | Next >

Add a Reply

You can use Markdown syntax in your reply.

Preview

Monitor this

Log in to monitor this topic. Not registered? Create an account to receive email updates when replies are posted to this topic. If you do not log in or register, your reply will be added anonymously.