public static object JsonDecode(string json) { instance.lastDecode = json; if (json != null) { char[] json2 = json.ToCharArray(); int index = 0; bool success = true; object result = instance.ParseValue(json2, ref index, ref success); if (success) { instance.lastErrorIndex = -1; } else { instance.lastErrorIndex = index; } return(result); } return(null); }