public class JsonUtil extends Object
| Modifier and Type | Field and Description |
|---|---|
static com.fasterxml.jackson.databind.ObjectMapper |
mapper |
| Modifier and Type | Method and Description |
|---|---|
static <T> T |
fromJson(String body) |
static String |
toJson(Object message) |
public static String toJson(Object message) throws com.fasterxml.jackson.core.JsonProcessingException
com.fasterxml.jackson.core.JsonProcessingExceptionpublic static <T> T fromJson(String body) throws IOException
IOExceptionCopyright © 2018. All rights reserved.