protected static object parseValue(char[] json, ref int index, ref bool success) { switch (MiniJSON.lookAhead(json, index)) { case 1: return(MiniJSON.parseObject(json, ref index)); case 3: return(MiniJSON.parseArray(json, ref index)); case 7: return(MiniJSON.parseString(json, ref index)); case 8: return(MiniJSON.parseNumber(json, ref index)); case 9: MiniJSON.nextToken(json, ref index); return(bool.Parse("TRUE")); case 10: MiniJSON.nextToken(json, ref index); return(bool.Parse("FALSE")); case 11: MiniJSON.nextToken(json, ref index); return(null); } success = false; return(null); }