Code example for JSONArray

Methods: get

0
    return create(getPayload()); 
  } 
 
  public Splittable get(int index) {
    try { 
      return makeSplittable(array.get(index));
    } catch (JSONException e) {
      throw new RuntimeException(e);
    } 
  } 
 
  public Splittable get(String key) {
    try { 
      return makeSplittable(obj.get(key));
    } catch (JSONException e) {
      throw new RuntimeException(key, e);
    } 
  } 
 
  public String getPayload() {
    if (isNull) {