public class JsonUtils extends Object
Modifier and Type | Method and Description |
---|---|
static com.fasterxml.jackson.databind.ObjectMapper |
getObjectMapper() |
static <T> T |
readFromFile(Path file,
Class<T> klass) |
static <T> T |
readFromString(String json,
Class<T> klass) |
static void |
saveToFile(Object obj,
Path targetFile) |
static String |
toJsonString(Object data) |
static String |
toPrettyJsonString(Object data) |
Copyright © 2020–2022 Leibniz Institute for Natural Product Research and Infection Biology - Hans Knöll Institute (HKI). All rights reserved.