<p>Sets a {@link JSONObject} containing the post data supplied with the current request.</p>

@param post A {@link JSONObject} containing the post data supplied with the current request
as key-value pairs.
770539
protected void setPost(JSONObject post) throws JSONException {
        params_ = post;
        if (getBranchRemoteAPIVersion() == BRANCH_API_VERSION.V2) {
            try {
                JSONObject userDataObj = new JSONObject();
                params_.put(Defines.Jsonkey.UserData.getKey(), userDataObj);
                DeviceInfo.getInstance().updateRequestWithV2Params(context_, prefHelper_, userDataObj);
            } catch (JSONException ignore) {
            }
        } else {
            DeviceInfo.getInstance().updateRequestWithV1Params(params_);
        }
    }
47296
public void setResponse(String response) {
		this.response = response;
		try {
			this.responseLength = response.getBytes("UTF-8").length;
		} catch (UnsupportedEncodingException e) {
			this.responseLength = response.length();
		}
	}
323234
public JSONObject put(String key, boolean value) throws JSONException {
        return this.put(key, value ? Boolean.TRUE : Boolean.FALSE);
    }
958160
protected BaseResponse executePost(String url, String json) {
        return executePost(url, json, null);
    }
746843
public RequestResponse setRequestData(Object requestData) {
        this.requestData = requestData;
        requestJson = requestData != null
                ? (requestData instanceof JsonNode ? (JsonNode) requestData
                        : SerializationUtils.toJson(requestData))
                : null;
        return this;
    }
72017
@Override
	public void setSubject(final String subject) throws MessagingException
	{
		if (charset == null)
		{
			super.setSubject(subject);
			return;
		}
		setSubject(subject, charset);
	}
602504
@Override
	public Later<String> post(String object, Param... params)
	{
		return this.getBatchForGraph().post(object, params);
	}
369809
public static IssueStatus parseStatus(JSONObject object)
			throws JSONException {
		final int id = JsonInput.getInt(object, "id");
		final String name = JsonInput.getStringNotNull(object, "name");
		final IssueStatus result = new IssueStatus(id, name);
		if (object.has("is_default"))
			result.setDefaultStatus(JsonInput.getOptionalBool(object,
					"is_default"));
		if (object.has("is_closed"))
			result.setClosed(JsonInput.getOptionalBool(object, "is_closed"));
		return result;
	}
1358931
public void setData(String key, Object value) {
        this.data = this.data.addData(key, value);
    }
1207330
public void setRequestProperty(String key, Object value) {
		if (value != null) {
			if (requestProperties == null) {
				requestProperties = new HashMap<>();
			}
			requestProperties.put(key, value);
		}
	}
1333367
public JSONObject put(String key, boolean value) throws JSONException {
        if (key == null) {
            throw new JSONException("Null key.");
        }
        m_map.put(key, value);
        return this;
    }
270814
public Response post(Object object) {
        assertNotEmpty(object, "object");
        InputStream response = null;
        try {
            response = couchDbClient.post(new DatabaseURIHelper(dbUri).getDatabaseUri(),
                    getGson().toJson(object));
            return getResponse(response, Response.class, getGson());
        } finally {
            close(response);
        }
    }
782990
void update(JsonObject dp){
		for(int i = 0; i < dp.names().size(); i++){
			datapoint.put(dp.names().get(i), dp.get(dp.names().get(i)));
		}
	}
613957
@Override
	public JSONObject put(String key, Object value) throws JSONException {
		if (null == key) {
			return this;
		}

		final boolean ignoreNullValue = this.config.isIgnoreNullValue();
		if (ObjectUtil.isNull(value) && ignoreNullValue) {
			// 忽略值模式下如果值为空清除key
			this.remove(key);
		} else {
			InternalJSONUtil.testValidity(value);
			this.rawHashMap.put(key, JSONUtil.wrap(value, ignoreNullValue));
		}
		return this;
	}
1285160
protected boolean hasKey(final String key, final JSONObject jsonObject) {
    return jsonObject != null
           && jsonObject.has(key);
  }
619383
public JSONObject element( String key, Collection value, JsonConfig jsonConfig ) {
      if( !(value instanceof JSONArray) ){
         value = JSONArray.fromObject( value, jsonConfig );
      }
      return setInternal( key, value, jsonConfig );
   }
515589
public JSONObject put(String key, int value) throws JSONException {
        put(key, Integer.valueOf(value));
        return this;
    }