| Modifier and Type | Field and Description |
|---|---|
static com.fasterxml.jackson.databind.ObjectMapper |
mapper |
static com.fasterxml.jackson.databind.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 com.fasterxml.jackson.databind.ObjectMapper mapper
public static com.fasterxml.jackson.databind.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 © 2015. All rights reserved.