@ProviderType
public class JSONFactoryUtil
extends Object
Constructor and Description |
---|
JSONFactoryUtil() |
Modifier and Type | Method and Description |
---|---|
static String |
convertJSONMLArrayToXML(String jsonml) |
static String |
convertJSONMLObjectToXML(String jsonml) |
static String |
convertXMLtoJSONMLArray(String xml) |
static String |
convertXMLtoJSONMLObject(String xml) |
static JSONTransformer |
createJavaScriptNormalizerJSONTransformer(List<String> javaScriptAttributes) |
static JSONArray |
createJSONArray() |
static JSONArray |
createJSONArray(String json) |
static <T> JSONDeserializer<T> |
createJSONDeserializer() |
static JSONObject |
createJSONObject() |
static JSONObject |
createJSONObject(String json) |
static JSONSerializer |
createJSONSerializer() |
static JSONValidator |
createJSONValidator(String jsonSchema) |
static Object |
deserialize(JSONObject jsonObj) |
static Object |
deserialize(String json) |
static JSONFactory |
getJSONFactory() |
static String |
getNullJSON() |
static JSONObject |
getUnmodifiableJSONObject() |
static Object |
looseDeserialize(String json) |
static <T> T |
looseDeserialize(String json,
Class<T> clazz) |
static String |
looseSerialize(Object object) |
static String |
looseSerialize(Object object,
JSONTransformer jsonTransformer,
Class<?> clazz) |
static String |
looseSerialize(Object object,
String... includes) |
static String |
looseSerializeDeep(Object object) |
static String |
looseSerializeDeep(Object object,
JSONTransformer jsonTransformer,
Class<?> clazz) |
static String |
serialize(Object object) |
static String |
serializeThrowable(Throwable throwable) |
void |
setJSONFactory(JSONFactory jsonFactory) |
public static String convertJSONMLArrayToXML(String jsonml)
public static String convertJSONMLObjectToXML(String jsonml)
public static String convertXMLtoJSONMLArray(String xml)
public static String convertXMLtoJSONMLObject(String xml)
public static JSONTransformer createJavaScriptNormalizerJSONTransformer(List<String> javaScriptAttributes)
public static JSONArray createJSONArray()
public static JSONArray createJSONArray(String json) throws JSONException
JSONException
public static <T> JSONDeserializer<T> createJSONDeserializer()
public static JSONObject createJSONObject()
public static JSONObject createJSONObject(String json) throws JSONException
JSONException
public static JSONSerializer createJSONSerializer()
public static JSONValidator createJSONValidator(String jsonSchema) throws JSONException
JSONException
public static Object deserialize(JSONObject jsonObj)
public static Object deserialize(String json)
public static JSONFactory getJSONFactory()
public static String getNullJSON()
public static JSONObject getUnmodifiableJSONObject()
public static Object looseDeserialize(String json)
public static <T> T looseDeserialize(String json, Class<T> clazz)
public static String looseSerialize(Object object)
public static String looseSerialize(Object object, JSONTransformer jsonTransformer, Class<?> clazz)
public static String looseSerialize(Object object, String... includes)
public static String looseSerializeDeep(Object object)
public static String looseSerializeDeep(Object object, JSONTransformer jsonTransformer, Class<?> clazz)
public static String serialize(Object object)
public static String serializeThrowable(Throwable throwable)
public void setJSONFactory(JSONFactory jsonFactory)