json


Description:

public HttpRequestBuilder json (JsonValue value)

Sets the request body to JSON text.

Content-Type is set to application/json automatically.

Parameters:

value

JSON value to serialize.

Returns:

this builder for chaining.