Unfortunately, this project not in development and has one serious for me bug: it can't parse wmpty array. I add one case in following code in JsonTextParser.cs at 213 line and it works fine. I didn't hardly test this solution, but in my project it works good:
if (s == '{')
{
result = new JsonObjectCollection();
}
else if (s == '[' && s == ']') {
result = new JsonArrayCollection();
c += 2;
return result;
}
else if (s == '[')
{
is_array = true;
result = new JsonArrayCollection();
}
else
{
throw new FormatException();
}
Maybe will be useful for somebody.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Unfortunately, this project not in development and has one serious for me bug: it can't parse wmpty array. I add one case in following code in JsonTextParser.cs at 213 line and it works fine. I didn't hardly test this solution, but in my project it works good:
if (s == '{')
{
result = new JsonObjectCollection();
}
else if (s == '[' && s == ']') {
result = new JsonArrayCollection();
c += 2;
return result;
}
else if (s == '[')
{
is_array = true;
result = new JsonArrayCollection();
}
else
{
throw new FormatException();
}
Maybe will be useful for somebody.