code: public JSONArray put(int index, Map<?, ?> value) throws JSONException {
  
          put(index, new JSONObject(value));
          return this;
      }
docs: Put a value in the JSONArray, where the value will be a
  JSONObject which is produced from a Map.<p>
  
  @param index the index must be between 0 and length() - 1
  @param value the Map value
  @return this
  @throws JSONException if the index is negative or if the the value is
  an invalid number