code: public static JSONArray getChildArray(JSONObject jsonObject, String key) throws JSONException {
  		checkArguments(jsonObject, key);
  		JSONValue value = jsonObject.get(key);
  		if (value != null) {
  			if (value.isArray() != null) {
  				return value.isArray();
  			} else if (value.isNull() != null) {
  				return null;
  			}
  			throw new JSONException("Child is not a JSONArray, but a: " + value.getClass());
  		}
  		return null;
  	}
docs: Get a child JSON array from a parent JSON object.
  
  @param jsonObject The parent JSON object.
  @param key The name of the child object.
  @return Returns the child JSON array if it could be found, or null if the value was null.
  @throws JSONException In case something went wrong while searching for the child.