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
JsonMappingException
public static <T> T parse(String json, Class<T> cls) throws JsonMappingException
JsonMappingException
public static jdk.nashorn.api.scripting.JSObject parse(String json) throws JsonMappingException
JsonMappingException
public static List parseList(String json) throws JsonMappingException
JsonMappingException
public static String stringify(Object obj) throws JsonWriteException
JsonWriteException
public static String stringify(Object obj, Class view) throws com.fasterxml.jackson.core.JsonProcessingException
com.fasterxml.jackson.core.JsonProcessingException
Copyright © 2016. All rights reserved.