@UnstableApi
    public <T> TransformingRequestPreparation<AggregatedHttpResponse, ResponseEntity<T>> asJson(
            Class<? extends T> clazz, ObjectMapper mapper) {
        requireNonNull(clazz, "clazz");
        requireNonNull(mapper, "mapper");
        return as(AggregatedResponseAs.json(clazz, mapper, SUCCESS_PREDICATE));
    }
Deserializes the JSON response content into the specified non-container type
using the specified {@link ObjectMapper}.
For example:
<pre>{@code
ObjectMapper mapper = ...;
BlockingWebClient client = BlockingWebClient.of("https://api.example.com");
ResponseEntity<MyObject> response = client.prepare()
                                          .get("/v1/items/1")
                                          .asJson(MyObject.class, mapper)
                                          .execute();
}</pre>

<p>Note that this method should NOT be used if the result type is a container such as {@link Collection}
or {@link Map}. Use {@link #asJson(TypeReference, ObjectMapper)} for the container type.

@throws InvalidHttpResponseException if the {@link HttpStatus} of the response is not
                                     {@linkplain HttpStatus#isSuccess() success} or fails to decode
                                     the response body into the result type.
core/src/main/java/com/linecorp/armeria/client/BlockingWebClientRequestPreparation.java