public final class JSONUtils extends Object
ObjectMapper.| Modifier and Type | Field and Description |
|---|---|
static com.fasterxml.jackson.databind.ObjectMapper |
OBJECT_MAPPER
ObjectMapper singleton.
|
| Modifier and Type | Method and Description |
|---|---|
static com.fasterxml.jackson.databind.ObjectMapper |
createObjectMapper()
Creates a pre-configured
ObjectMapper. |
static <T> T |
read(InputStream inputStream,
Class<T> valueType)
Deprecated.
since 1.15
|
static <T> T |
read(InputStream inputStream,
com.fasterxml.jackson.core.type.TypeReference<T> type)
Deprecated.
since 1.15
|
static <T> T |
read(String json,
Class<T> type)
Deprecated.
since 1.15
|
static <T> T |
read(String json,
com.fasterxml.jackson.core.type.TypeReference<T> type)
|
static String |
write(Object object)
Converts the provided
object to an JSON String. |
public static final com.fasterxml.jackson.databind.ObjectMapper OBJECT_MAPPER
@Deprecated public static <T> T read(String json, Class<T> type)
public static <T> T read(String json, com.fasterxml.jackson.core.type.TypeReference<T> type)
@Deprecated public static <T> T read(InputStream inputStream, com.fasterxml.jackson.core.type.TypeReference<T> type)
InputStream to a native type representation.@Deprecated public static <T> T read(InputStream inputStream, Class<T> valueType)
InputStream to a native valueType representation.public static com.fasterxml.jackson.databind.ObjectMapper createObjectMapper()
ObjectMapper.Copyright © 2016 EVRYTHNG Ltd London / Zurich. All rights reserved.