code: public JSONObject put(String key, double value) throws JSONException {
          put(key, Double.valueOf(value));
          return this;
      }
docs: Put a key/double pair in the JSONObject.
  
  @param key   A key string.
  @param value A double which is the value.
  @return this
  @throws JSONException If the key is null or if the number is invalid.