public class JsonBody extends StringBody
| Constructor and Description |
|---|
JsonBody(org.json.JSONObject object) |
JsonBody(java.lang.String body) |
| Modifier and Type | Method and Description |
|---|---|
MediaType |
contentType()
Get the content-type of the message body, including charset.
|
contentLength, isChunked, isRepeatable, writeTopublic JsonBody(java.lang.String body)
public JsonBody(org.json.JSONObject object)
public MediaType contentType()
ResponseBodycontentType in interface ResponseBodycontentType in class StringBodyapplication/json; charset=utf-8.