public class JSON extends Object
Modifier and Type | Field and Description |
---|---|
static com.fasterxml.jackson.databind.ObjectMapper |
MAPPER |
Constructor and Description |
---|
JSON() |
Modifier and Type | Method and Description |
---|---|
static <T> T |
parse(byte[] json,
Class<T> valueType) |
static <T> T |
parse(byte[] json,
com.fasterxml.jackson.core.type.TypeReference<T> valueType) |
static <T> T |
parse(String json,
Class<T> valueType) |
static <T> T |
parse(String json,
com.fasterxml.jackson.core.type.TypeReference<T> valueType) |
static byte[] |
parseBytes(String json) |
static Map<String,Object> |
parseMap(String json) |
static String |
stringify(Object value) |
static void |
stringify(Object value,
OutputStream out) |
static void |
warmup() |
public static void stringify(Object value, OutputStream out)
public static <T> T parse(byte[] json, Class<T> valueType)
public static <T> T parse(String json, com.fasterxml.jackson.core.type.TypeReference<T> valueType)
public static <T> T parse(byte[] json, com.fasterxml.jackson.core.type.TypeReference<T> valueType)
public static void warmup()
public static byte[] parseBytes(String json)
Copyright © 2014–2015 Nikolche Mihajlovski and contributors. All rights reserved.