private object ParseByToken(TOKEN token)
{
switch (token)
{
case TOKEN.STRING:
return this.ParseString();
case TOKEN.NUMBER:
return this.ParseNumber();
case TOKEN.TRUE:
return true;
case TOKEN.FALSE:
return false;
case TOKEN.NULL:
return null;
case TOKEN.CURLY_OPEN:
return this.ParseObject();
case TOKEN.SQUARED_OPEN:
return this.ParseArray();
}
return null;
}