code: protected void putResponse(JSONObject json,
                                 String param,
                                 Object value) {
          try {
              json.put(param,
                       value);
          } catch (JSONException e) {
              logger.error("json write error",
                           e);
          }
      }
docs: Append data to JSON response.
  @param param
  @param value