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
EncodeException
public static String encodePrettily(Object obj) throws EncodeException
EncodeException
public static <T> T decodeValue(String str, Class<T> clazz) throws DecodeException
DecodeException
Copyright © 2016. All rights reserved.