/// <summary> /// Append the specified value /// </summary> /// <param name='value'> /// The value to put /// </param> public JSONArray put(System.Object value) { if (value is string) { arrayList.Add(JSON_Object.quote((string)value)); } else { arrayList.Add(value); } return(this); }
/// <summary> /// Put the specified value at index. /// </summary> /// <param name='index'> /// Which index to put /// </param> /// <param name='value'> /// The value to put /// </param> public JSONArray put(int index, System.Object value) { if (index == arrayList.Count) { put(value); } if (value is string) { arrayList[index] = JSON_Object.quote((string)value); } else { arrayList[index] = value; } return(this); }