Warning: this should only be used by some older Google APIs that wrapped the response in a {@code "data"} envelope. All newer Google APIs don't use this envelope, and for those APIs{@link JsonHttpContent} should be used instead.
Sample usage:
static void setContent(HttpRequest request, Object data) { JsonCContent content = new JsonCContent(new JacksonFactory(), data); request.setContent(content); }
Implementation is not thread-safe.
@since 1.0 @author Yaniv Inbar
|
|