protected static object ParseValue(char[] json, ref int index, ref bool success) { switch (JsonParser.LookAhead(json, index)) { case 1: return(JsonParser.ParseObject(json, ref index, ref success)); case 3: return(JsonParser.ParseArray(json, ref index, ref success)); case 7: return(JsonParser.ParseString(json, ref index, ref success)); case 8: return(JsonParser.ParseNumber(json, ref index, ref success)); case 9: JsonParser.NextToken(json, ref index); return(true); case 10: JsonParser.NextToken(json, ref index); return(false); case 11: JsonParser.NextToken(json, ref index); return(null); } success = false; return(null); }