/** * Set a Json Body to this request. * The <tt>Content-Type</tt> header of the request is set to <tt>application/json</tt>. * * @param json the JsValue * @return the modified builder */ public RequestBuilder bodyJson(JsValue json) { return bodyJson(Json.parse(play.api.libs.json.Json.stringify(json))); }
/** * Set a Json Body to this request. * The <tt>Content-Type</tt> header of the request is set to <tt>application/json</tt>. * * @param json the JsValue * @return the modified builder */ public RequestBuilder bodyJson(JsValue json) { return bodyJson(Json.parse(play.api.libs.json.Json.stringify(json))); }
/** * Set a Json Body to this request. * The <tt>Content-Type</tt> header of the request is set to <tt>application/json</tt>. * @param node the Json Node */ public RequestBuilder bodyJson(JsonNode node) { return bodyJson(JacksonJson.jsonNodeToJsValue(node)); }
/** * Set a Json Body to this request. * The <tt>Content-Type</tt> header of the request is set to <tt>application/json</tt>. * * @param json the JsValue * @return the modified builder */ public RequestBuilder bodyJson(JsValue json) { return bodyJson(Json.parse(play.api.libs.json.Json.stringify(json))); }