public class JSONFactoryImpl
extends Object
implements com.liferay.portal.kernel.json.JSONFactory
| Constructor and Description |
|---|
JSONFactoryImpl() |
| Modifier and Type | Method and Description |
|---|---|
String |
convertJSONMLArrayToXML(String jsonml) |
String |
convertJSONMLObjectToXML(String jsonml) |
String |
convertXMLtoJSONMLArray(String xml) |
String |
convertXMLtoJSONMLObject(String xml) |
com.liferay.portal.kernel.json.JSONTransformer |
createJavaScriptNormalizerJSONTransformer(List<String> javaScriptAttributes) |
com.liferay.portal.kernel.json.JSONArray |
createJSONArray() |
com.liferay.portal.kernel.json.JSONArray |
createJSONArray(Collection<?> collection) |
com.liferay.portal.kernel.json.JSONArray |
createJSONArray(String json) |
<T> com.liferay.portal.kernel.json.JSONArray |
createJSONArray(T[] array) |
<T> com.liferay.portal.kernel.json.JSONDeserializer<T> |
createJSONDeserializer() |
com.liferay.portal.kernel.json.JSONObject |
createJSONObject() |
com.liferay.portal.kernel.json.JSONObject |
createJSONObject(String json) |
com.liferay.portal.kernel.json.JSONSerializer |
createJSONSerializer() |
Object |
deserialize(com.liferay.portal.kernel.json.JSONObject jsonObj) |
Object |
deserialize(String json) |
LiferayJSONDeserializationWhitelist |
getLiferayJSONDeserializationWhitelist() |
String |
getNullJSON() |
com.liferay.portal.kernel.json.JSONObject |
getUnmodifiableJSONObject() |
Object |
looseDeserialize(String json) |
<T> T |
looseDeserialize(String json,
Class<T> clazz) |
String |
looseSerialize(Object object) |
String |
looseSerialize(Object object,
com.liferay.portal.kernel.json.JSONTransformer jsonTransformer,
Class<?> clazz) |
String |
looseSerialize(Object object,
String... includes) |
String |
looseSerializeDeep(Object object) |
String |
looseSerializeDeep(Object object,
com.liferay.portal.kernel.json.JSONTransformer jsonTransformer,
Class<?> clazz) |
String |
serialize(Object object) |
String |
serializeThrowable(Throwable throwable) |
public String convertJSONMLArrayToXML(String jsonml)
convertJSONMLArrayToXML in interface com.liferay.portal.kernel.json.JSONFactorypublic String convertJSONMLObjectToXML(String jsonml)
convertJSONMLObjectToXML in interface com.liferay.portal.kernel.json.JSONFactorypublic String convertXMLtoJSONMLArray(String xml)
convertXMLtoJSONMLArray in interface com.liferay.portal.kernel.json.JSONFactorypublic String convertXMLtoJSONMLObject(String xml)
convertXMLtoJSONMLObject in interface com.liferay.portal.kernel.json.JSONFactorypublic com.liferay.portal.kernel.json.JSONTransformer createJavaScriptNormalizerJSONTransformer(List<String> javaScriptAttributes)
createJavaScriptNormalizerJSONTransformer in interface com.liferay.portal.kernel.json.JSONFactorypublic com.liferay.portal.kernel.json.JSONArray createJSONArray()
createJSONArray in interface com.liferay.portal.kernel.json.JSONFactorypublic com.liferay.portal.kernel.json.JSONArray createJSONArray(Collection<?> collection)
createJSONArray in interface com.liferay.portal.kernel.json.JSONFactorypublic com.liferay.portal.kernel.json.JSONArray createJSONArray(String json)
throws com.liferay.portal.kernel.json.JSONException
createJSONArray in interface com.liferay.portal.kernel.json.JSONFactorycom.liferay.portal.kernel.json.JSONExceptionpublic <T> com.liferay.portal.kernel.json.JSONArray createJSONArray(T[] array)
createJSONArray in interface com.liferay.portal.kernel.json.JSONFactorypublic <T> com.liferay.portal.kernel.json.JSONDeserializer<T> createJSONDeserializer()
createJSONDeserializer in interface com.liferay.portal.kernel.json.JSONFactorypublic com.liferay.portal.kernel.json.JSONObject createJSONObject()
createJSONObject in interface com.liferay.portal.kernel.json.JSONFactorypublic com.liferay.portal.kernel.json.JSONObject createJSONObject(String json)
throws com.liferay.portal.kernel.json.JSONException
createJSONObject in interface com.liferay.portal.kernel.json.JSONFactorycom.liferay.portal.kernel.json.JSONExceptionpublic com.liferay.portal.kernel.json.JSONSerializer createJSONSerializer()
createJSONSerializer in interface com.liferay.portal.kernel.json.JSONFactorypublic Object deserialize(com.liferay.portal.kernel.json.JSONObject jsonObj)
deserialize in interface com.liferay.portal.kernel.json.JSONFactorypublic Object deserialize(String json)
deserialize in interface com.liferay.portal.kernel.json.JSONFactorypublic LiferayJSONDeserializationWhitelist getLiferayJSONDeserializationWhitelist()
public String getNullJSON()
getNullJSON in interface com.liferay.portal.kernel.json.JSONFactorypublic com.liferay.portal.kernel.json.JSONObject getUnmodifiableJSONObject()
getUnmodifiableJSONObject in interface com.liferay.portal.kernel.json.JSONFactorypublic Object looseDeserialize(String json)
looseDeserialize in interface com.liferay.portal.kernel.json.JSONFactorypublic <T> T looseDeserialize(String json,
Class<T> clazz)
looseDeserialize in interface com.liferay.portal.kernel.json.JSONFactorypublic String looseSerialize(Object object)
looseSerialize in interface com.liferay.portal.kernel.json.JSONFactorypublic String looseSerialize(Object object,
com.liferay.portal.kernel.json.JSONTransformer jsonTransformer,
Class<?> clazz)
looseSerialize in interface com.liferay.portal.kernel.json.JSONFactorypublic String looseSerialize(Object object,
String... includes)
looseSerialize in interface com.liferay.portal.kernel.json.JSONFactorypublic String looseSerializeDeep(Object object)
looseSerializeDeep in interface com.liferay.portal.kernel.json.JSONFactorypublic String looseSerializeDeep(Object object,
com.liferay.portal.kernel.json.JSONTransformer jsonTransformer,
Class<?> clazz)
looseSerializeDeep in interface com.liferay.portal.kernel.json.JSONFactorypublic String serialize(Object object)
serialize in interface com.liferay.portal.kernel.json.JSONFactorypublic String serializeThrowable(Throwable throwable)
serializeThrowable in interface com.liferay.portal.kernel.json.JSONFactory