public final class JacksonUtils extends Object
Modifier and Type | Method and Description |
---|---|
static <T> T |
fromJsonString(String json,
Class<T> clazz)
Returns the deserialized object from the given json string and target
class; or null if the given json string is null.
|
static <T> T |
fromSensitiveJsonString(String json,
Class<T> clazz)
Returns the deserialized object from the given json string and target
class; or null if the given json string is null.
|
static com.fasterxml.jackson.core.JsonGenerator |
jsonGeneratorOf(Writer writer) |
static com.fasterxml.jackson.databind.JsonNode |
jsonNodeOf(String json) |
static com.fasterxml.jackson.databind.JsonNode |
sensitiveJsonNodeOf(String json) |
static String |
toJsonPrettyString(Object value) |
static String |
toJsonString(Object value) |
public static <T> T fromJsonString(String json, Class<T> clazz)
public static <T> T fromSensitiveJsonString(String json, Class<T> clazz)
public static com.fasterxml.jackson.databind.JsonNode jsonNodeOf(String json)
public static com.fasterxml.jackson.databind.JsonNode sensitiveJsonNodeOf(String json)
public static com.fasterxml.jackson.core.JsonGenerator jsonGeneratorOf(Writer writer) throws IOException
IOException
Copyright © 2021. All rights reserved.