/// <summary> /// Initializes a new instance of the <see cref="JSONArray"/> class /// </summary> /// <param name='json'> /// string constructor /// </param> public JSONArray(string json) { if (string.IsNullOrEmpty(json)) { arrayList = new List <object>(); return; } char[] charArray = json.ToCharArray(); int idx = 0; bool success = true; JSONArray value = JSON_Object.ParseArray(charArray, ref idx, ref success); if (value != null) { arrayList = value.arrayList; } else { Debug.LogError("JSONArray.cs constructor ParseArray failed"); arrayList = new List <object>(); } }