| Modifier and Type | Field and Description |
|---|---|
static ObjectMapper |
mapper |
static ObjectMapper |
prettyMapper |
| Constructor and Description |
|---|
Json() |
| Modifier and Type | Method and Description |
|---|---|
static <T> T |
decodeValue(String str,
Class<T> clazz) |
static String |
encode(Object obj) |
static String |
encodePrettily(Object obj) |
public static ObjectMapper mapper
public static ObjectMapper prettyMapper
public static String encode(Object obj) throws EncodeException
EncodeExceptionpublic static String encodePrettily(Object obj) throws EncodeException
EncodeExceptionpublic static <T> T decodeValue(String str, Class<T> clazz) throws DecodeException
DecodeExceptionCopyright © 2016. All rights reserved.