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
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.