public class JsonUtils extends Object
| Constructor and Description |
|---|
JsonUtils() |
| Modifier and Type | Method and Description |
|---|---|
static <T> Optional<T> |
fromJson(String json,
com.fasterxml.jackson.databind.ObjectMapper objectMapper,
com.fasterxml.jackson.core.type.TypeReference<T> typeReference)
Converts the provided json to the desired type.
|
public static <T> Optional<T> fromJson(String json, com.fasterxml.jackson.databind.ObjectMapper objectMapper, com.fasterxml.jackson.core.type.TypeReference<T> typeReference)
T - The response type.json - The json.objectMapper - The mapper.typeReference - The type reference.Copyright © 2025 OBM, LLC. All rights reserved.