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)