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(String json) |
<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() |
com.liferay.portal.kernel.json.JSONValidator |
createJSONValidator(String jsonSchema) |
Object |
deserialize(com.liferay.portal.kernel.json.JSONObject jsonObj) |
Object |
deserialize(String json) |
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.JSONFactory
public String convertJSONMLObjectToXML(String jsonml)
convertJSONMLObjectToXML
in interface com.liferay.portal.kernel.json.JSONFactory
public String convertXMLtoJSONMLArray(String xml)
convertXMLtoJSONMLArray
in interface com.liferay.portal.kernel.json.JSONFactory
public String convertXMLtoJSONMLObject(String xml)
convertXMLtoJSONMLObject
in interface com.liferay.portal.kernel.json.JSONFactory
public com.liferay.portal.kernel.json.JSONTransformer createJavaScriptNormalizerJSONTransformer(List<String> javaScriptAttributes)
createJavaScriptNormalizerJSONTransformer
in interface com.liferay.portal.kernel.json.JSONFactory
public com.liferay.portal.kernel.json.JSONArray createJSONArray()
createJSONArray
in interface com.liferay.portal.kernel.json.JSONFactory
public com.liferay.portal.kernel.json.JSONArray createJSONArray(String json) throws com.liferay.portal.kernel.json.JSONException
createJSONArray
in interface com.liferay.portal.kernel.json.JSONFactory
com.liferay.portal.kernel.json.JSONException
public <T> com.liferay.portal.kernel.json.JSONDeserializer<T> createJSONDeserializer()
createJSONDeserializer
in interface com.liferay.portal.kernel.json.JSONFactory
public com.liferay.portal.kernel.json.JSONObject createJSONObject()
createJSONObject
in interface com.liferay.portal.kernel.json.JSONFactory
public com.liferay.portal.kernel.json.JSONObject createJSONObject(String json) throws com.liferay.portal.kernel.json.JSONException
createJSONObject
in interface com.liferay.portal.kernel.json.JSONFactory
com.liferay.portal.kernel.json.JSONException
public com.liferay.portal.kernel.json.JSONSerializer createJSONSerializer()
createJSONSerializer
in interface com.liferay.portal.kernel.json.JSONFactory
public com.liferay.portal.kernel.json.JSONValidator createJSONValidator(String jsonSchema) throws com.liferay.portal.kernel.json.JSONException
createJSONValidator
in interface com.liferay.portal.kernel.json.JSONFactory
com.liferay.portal.kernel.json.JSONException
public Object deserialize(com.liferay.portal.kernel.json.JSONObject jsonObj)
deserialize
in interface com.liferay.portal.kernel.json.JSONFactory
public Object deserialize(String json)
deserialize
in interface com.liferay.portal.kernel.json.JSONFactory
public String getNullJSON()
getNullJSON
in interface com.liferay.portal.kernel.json.JSONFactory
public com.liferay.portal.kernel.json.JSONObject getUnmodifiableJSONObject()
getUnmodifiableJSONObject
in interface com.liferay.portal.kernel.json.JSONFactory
public Object looseDeserialize(String json)
looseDeserialize
in interface com.liferay.portal.kernel.json.JSONFactory
public <T> T looseDeserialize(String json, Class<T> clazz)
looseDeserialize
in interface com.liferay.portal.kernel.json.JSONFactory
public String looseSerialize(Object object)
looseSerialize
in interface com.liferay.portal.kernel.json.JSONFactory
public String looseSerialize(Object object, com.liferay.portal.kernel.json.JSONTransformer jsonTransformer, Class<?> clazz)
looseSerialize
in interface com.liferay.portal.kernel.json.JSONFactory
public String looseSerialize(Object object, String... includes)
looseSerialize
in interface com.liferay.portal.kernel.json.JSONFactory
public String looseSerializeDeep(Object object)
looseSerializeDeep
in interface com.liferay.portal.kernel.json.JSONFactory
public String looseSerializeDeep(Object object, com.liferay.portal.kernel.json.JSONTransformer jsonTransformer, Class<?> clazz)
looseSerializeDeep
in interface com.liferay.portal.kernel.json.JSONFactory
public String serialize(Object object)
serialize
in interface com.liferay.portal.kernel.json.JSONFactory
public String serializeThrowable(Throwable throwable)
serializeThrowable
in interface com.liferay.portal.kernel.json.JSONFactory