Class JsonUtils
java.lang.Object
io.fluxcapacitor.common.serialization.JsonUtils
public class JsonUtils extends Object
-
Field Summary
-
Constructor Summary
Constructors Constructor Description JsonUtils() -
Method Summary
Modifier and Type Method Description static byte[]asBytes(Object object)static StringasJson(Object object)static StringasPrettyJson(Object object)static <T> TconvertValue(Object fromValue, Class<? extends T> toValueType)static <T> TfromFile(Class<?> referencePoint, String fileName)static <T> TfromFile(Class<?> referencePoint, String fileName, com.fasterxml.jackson.databind.JavaType javaType)static <T> TfromFile(Class<?> referencePoint, String fileName, Class<T> type)static <T> TfromFile(String fileName)static List<?>fromFile(String... fileNames)static <T> TfromFile(String fileName, com.fasterxml.jackson.databind.JavaType javaType)static <T> TfromJson(byte[] json, Class<T> type)static <T> TfromJson(String json)static <T> TfromJson(String json, com.fasterxml.jackson.databind.JavaType type)static <T> TfromJson(String json, Class<T> type)static com.fasterxml.jackson.databind.JsonNodereadTree(InputStream readEntity)static <T extends com.fasterxml.jackson.databind.JsonNode>
TvalueToTree(Object object)
-
Field Details
-
reader
public static final com.fasterxml.jackson.databind.json.JsonMapper reader -
writer
public static final com.fasterxml.jackson.databind.json.JsonMapper writer
-
-
Constructor Details
-
JsonUtils
public JsonUtils()
-
-
Method Details
-
fromFile
-
fromFile
-
fromFile
-
fromFile
-
fromFile
-
fromFile
-
fromJson
-
fromJson
-
fromJson
-
fromJson
-
asJson
-
asPrettyJson
-
asBytes
-
convertValue
-
readTree
-
valueToTree
-