public class JsonUtils extends Object
| Constructor and Description |
|---|
JsonUtils() |
| Modifier and Type | Method and Description |
|---|---|
static <T> T |
fromJson(String json,
Class<T> clazz) |
static com.fasterxml.jackson.databind.ObjectMapper |
getObjectMapper() |
static com.fasterxml.jackson.databind.JsonNode |
parseJson(String json) |
static String |
toJson(Object obj) |
public static String toJson(Object obj) throws com.fasterxml.jackson.core.JsonProcessingException
com.fasterxml.jackson.core.JsonProcessingExceptionpublic static <T> T fromJson(String json, Class<T> clazz) throws com.fasterxml.jackson.core.JsonProcessingException
com.fasterxml.jackson.core.JsonProcessingExceptionpublic static com.fasterxml.jackson.databind.JsonNode parseJson(String json) throws com.fasterxml.jackson.core.JsonProcessingException
com.fasterxml.jackson.core.JsonProcessingExceptionpublic static com.fasterxml.jackson.databind.ObjectMapper getObjectMapper()
Copyright © 2025. All rights reserved.