private Dictionary<string, object> ParseObject()
{
Dictionary<string, object> dictionary = new Dictionary<string, object>();
this.json.Read();
while (true)
{
TOKEN nextToken = this.NextToken;
switch (nextToken)
{
case TOKEN.NONE:
return null;
case TOKEN.CURLY_CLOSE:
return dictionary;
}
if (nextToken != TOKEN.COMMA)
{
string str = this.ParseString();
if (str == null)
{
return null;
}
if (this.NextToken != TOKEN.COLON)
{
return null;
}
this.json.Read();
dictionary[str] = this.ParseValue();
}
}
}