public static final class RsWithType.Json extends RsWrap
The class is immutable and thread-safe.
Constructor and Description |
---|
Json(Response res)
Constructs a
JSON that will add application/json as the
content type header to the response. |
Json(Response res,
Charset charset)
Constructs a
JSON that will add application/json as the
content type header to the response using the specified charset as
charset parameter value. |
public Json(Response res)
JSON
that will add application/json as the
content type header to the response.res
- Original responseCopyright © 2015–2018 Take. All rights reserved.