Package com.liferay.portal.json
Class JSONFactoryImpl
Object
com.liferay.portal.json.JSONFactoryImpl
- All Implemented Interfaces:
com.liferay.portal.kernel.json.JSONFactory
- Author:
- Brian Wing Shun Chan
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionconvertJSONMLArrayToXML(String jsonml) convertJSONMLObjectToXML(String jsonml) com.liferay.portal.kernel.json.JSONTransformercreateJavaScriptNormalizerJSONTransformer(List<String> javaScriptAttributes) com.liferay.portal.kernel.json.JSONArraycom.liferay.portal.kernel.json.JSONArraycreateJSONArray(String json) com.liferay.portal.kernel.json.JSONArraycreateJSONArray(Collection<?> collection) <T> com.liferay.portal.kernel.json.JSONArraycreateJSONArray(T[] array) <T> com.liferay.portal.kernel.json.JSONDeserializer<T>com.liferay.portal.kernel.json.JSONObjectcom.liferay.portal.kernel.json.JSONObjectcreateJSONObject(String json) com.liferay.portal.kernel.json.JSONObjectcreateJSONObject(Map<?, ?> map) com.liferay.portal.kernel.json.JSONSerializerdeserialize(com.liferay.portal.kernel.json.JSONObject jsonObject) deserialize(String json) com.liferay.portal.kernel.json.JSONObjectlooseDeserialize(String json) <T> TlooseDeserialize(String json, Class<T> clazz) looseSerialize(Object object) looseSerialize(Object object, com.liferay.portal.kernel.json.JSONTransformer jsonTransformer, Class<?> clazz) looseSerialize(Object object, String... includes) looseSerializeDeep(Object object) looseSerializeDeep(Object object, com.liferay.portal.kernel.json.JSONTransformer jsonTransformer, Class<?> clazz) serializeThrowable(Throwable throwable)
-
Constructor Details
-
JSONFactoryImpl
public JSONFactoryImpl()
-
-
Method Details
-
convertJSONMLArrayToXML
- Specified by:
convertJSONMLArrayToXMLin interfacecom.liferay.portal.kernel.json.JSONFactory
-
convertJSONMLObjectToXML
- Specified by:
convertJSONMLObjectToXMLin interfacecom.liferay.portal.kernel.json.JSONFactory
-
convertXMLtoJSONMLArray
- Specified by:
convertXMLtoJSONMLArrayin interfacecom.liferay.portal.kernel.json.JSONFactory
-
convertXMLtoJSONMLObject
- Specified by:
convertXMLtoJSONMLObjectin interfacecom.liferay.portal.kernel.json.JSONFactory
-
createJavaScriptNormalizerJSONTransformer
public com.liferay.portal.kernel.json.JSONTransformer createJavaScriptNormalizerJSONTransformer(List<String> javaScriptAttributes) - Specified by:
createJavaScriptNormalizerJSONTransformerin interfacecom.liferay.portal.kernel.json.JSONFactory
-
createJSONArray
public com.liferay.portal.kernel.json.JSONArray createJSONArray()- Specified by:
createJSONArrayin interfacecom.liferay.portal.kernel.json.JSONFactory
-
createJSONArray
- Specified by:
createJSONArrayin interfacecom.liferay.portal.kernel.json.JSONFactory
-
createJSONArray
public com.liferay.portal.kernel.json.JSONArray createJSONArray(String json) throws com.liferay.portal.kernel.json.JSONException - Specified by:
createJSONArrayin interfacecom.liferay.portal.kernel.json.JSONFactory- Throws:
com.liferay.portal.kernel.json.JSONException
-
createJSONArray
public <T> com.liferay.portal.kernel.json.JSONArray createJSONArray(T[] array) - Specified by:
createJSONArrayin interfacecom.liferay.portal.kernel.json.JSONFactory
-
createJSONDeserializer
public <T> com.liferay.portal.kernel.json.JSONDeserializer<T> createJSONDeserializer()- Specified by:
createJSONDeserializerin interfacecom.liferay.portal.kernel.json.JSONFactory
-
createJSONObject
public com.liferay.portal.kernel.json.JSONObject createJSONObject()- Specified by:
createJSONObjectin interfacecom.liferay.portal.kernel.json.JSONFactory
-
createJSONObject
- Specified by:
createJSONObjectin interfacecom.liferay.portal.kernel.json.JSONFactory
-
createJSONObject
public com.liferay.portal.kernel.json.JSONObject createJSONObject(String json) throws com.liferay.portal.kernel.json.JSONException - Specified by:
createJSONObjectin interfacecom.liferay.portal.kernel.json.JSONFactory- Throws:
com.liferay.portal.kernel.json.JSONException
-
createJSONSerializer
public com.liferay.portal.kernel.json.JSONSerializer createJSONSerializer()- Specified by:
createJSONSerializerin interfacecom.liferay.portal.kernel.json.JSONFactory
-
deserialize
- Specified by:
deserializein interfacecom.liferay.portal.kernel.json.JSONFactory
-
deserialize
- Specified by:
deserializein interfacecom.liferay.portal.kernel.json.JSONFactory
-
getLiferayJSONDeserializationWhitelist
-
getNullJSON
- Specified by:
getNullJSONin interfacecom.liferay.portal.kernel.json.JSONFactory
-
getUnmodifiableJSONObject
public com.liferay.portal.kernel.json.JSONObject getUnmodifiableJSONObject()- Specified by:
getUnmodifiableJSONObjectin interfacecom.liferay.portal.kernel.json.JSONFactory
-
looseDeserialize
- Specified by:
looseDeserializein interfacecom.liferay.portal.kernel.json.JSONFactory
-
looseDeserialize
- Specified by:
looseDeserializein interfacecom.liferay.portal.kernel.json.JSONFactory
-
looseSerialize
- Specified by:
looseSerializein interfacecom.liferay.portal.kernel.json.JSONFactory
-
looseSerialize
public String looseSerialize(Object object, com.liferay.portal.kernel.json.JSONTransformer jsonTransformer, Class<?> clazz) - Specified by:
looseSerializein interfacecom.liferay.portal.kernel.json.JSONFactory
-
looseSerialize
- Specified by:
looseSerializein interfacecom.liferay.portal.kernel.json.JSONFactory
-
looseSerializeDeep
- Specified by:
looseSerializeDeepin interfacecom.liferay.portal.kernel.json.JSONFactory
-
looseSerializeDeep
public String looseSerializeDeep(Object object, com.liferay.portal.kernel.json.JSONTransformer jsonTransformer, Class<?> clazz) - Specified by:
looseSerializeDeepin interfacecom.liferay.portal.kernel.json.JSONFactory
-
serialize
- Specified by:
serializein interfacecom.liferay.portal.kernel.json.JSONFactory
-
serializeThrowable
- Specified by:
serializeThrowablein interfacecom.liferay.portal.kernel.json.JSONFactory
-