| Constructor and Description |
|---|
JSON() |
| Modifier and Type | Method and Description |
|---|---|
static jdk.nashorn.api.scripting.JSObject |
parse(String json) |
static <T> T |
parse(String json,
Class<T> cls) |
static <T> T |
parse(String json,
com.fasterxml.jackson.core.type.TypeReference<T> typeReference) |
static List |
parseList(String json) |
static Map<String,Object> |
parseMap(String json) |
static String |
stringify(Object obj) |
static String |
stringify(Object obj,
Class view) |
static String |
stringify(Object obj,
Class view,
Boolean excludeByDefault) |
public JSON()
public static <T> T parse(String json, com.fasterxml.jackson.core.type.TypeReference<T> typeReference) throws JsonMappingException
JsonMappingExceptionpublic static <T> T parse(String json, Class<T> cls) throws JsonMappingException
JsonMappingExceptionpublic static jdk.nashorn.api.scripting.JSObject parse(String json) throws JsonMappingException
JsonMappingExceptionpublic static List parseList(String json) throws JsonMappingException
JsonMappingExceptionpublic static String stringify(Object obj) throws JsonWriteException
JsonWriteExceptionpublic static String stringify(Object obj, Class view) throws com.fasterxml.jackson.core.JsonProcessingException
com.fasterxml.jackson.core.JsonProcessingExceptionCopyright © 2016. All rights reserved.