com.liferay.portal.json
Class JSONFactoryImpl
java.lang.Object
com.liferay.portal.json.JSONFactoryImpl
- All Implemented Interfaces:
- com.liferay.portal.kernel.json.JSONFactory
public class JSONFactoryImpl
- extends java.lang.Object
- implements com.liferay.portal.kernel.json.JSONFactory
- Author:
- Brian Wing Shun Chan
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JSONFactoryImpl
public JSONFactoryImpl()
convertJSONMLArrayToXML
public java.lang.String convertJSONMLArrayToXML(java.lang.String jsonml)
- Specified by:
convertJSONMLArrayToXML in interface com.liferay.portal.kernel.json.JSONFactory
convertJSONMLObjectToXML
public java.lang.String convertJSONMLObjectToXML(java.lang.String jsonml)
- Specified by:
convertJSONMLObjectToXML in interface com.liferay.portal.kernel.json.JSONFactory
convertXMLtoJSONMLArray
public java.lang.String convertXMLtoJSONMLArray(java.lang.String xml)
- Specified by:
convertXMLtoJSONMLArray in interface com.liferay.portal.kernel.json.JSONFactory
convertXMLtoJSONMLObject
public java.lang.String convertXMLtoJSONMLObject(java.lang.String xml)
- Specified by:
convertXMLtoJSONMLObject in interface com.liferay.portal.kernel.json.JSONFactory
createJavaScriptNormalizerJSONTransformer
public com.liferay.portal.kernel.json.JSONTransformer createJavaScriptNormalizerJSONTransformer(java.util.List<java.lang.String> javaScriptAttributes)
- Specified by:
createJavaScriptNormalizerJSONTransformer in interface com.liferay.portal.kernel.json.JSONFactory
createJSONArray
public com.liferay.portal.kernel.json.JSONArray createJSONArray()
- Specified by:
createJSONArray in interface com.liferay.portal.kernel.json.JSONFactory
createJSONArray
public com.liferay.portal.kernel.json.JSONArray createJSONArray(java.lang.String json)
throws com.liferay.portal.kernel.json.JSONException
- Specified by:
createJSONArray in interface com.liferay.portal.kernel.json.JSONFactory
- Throws:
com.liferay.portal.kernel.json.JSONException
createJSONDeserializer
public <T> com.liferay.portal.kernel.json.JSONDeserializer<T> createJSONDeserializer()
- Specified by:
createJSONDeserializer in interface com.liferay.portal.kernel.json.JSONFactory
createJSONObject
public com.liferay.portal.kernel.json.JSONObject createJSONObject()
- Specified by:
createJSONObject in interface com.liferay.portal.kernel.json.JSONFactory
createJSONObject
public com.liferay.portal.kernel.json.JSONObject createJSONObject(java.lang.String json)
throws com.liferay.portal.kernel.json.JSONException
- Specified by:
createJSONObject in interface com.liferay.portal.kernel.json.JSONFactory
- Throws:
com.liferay.portal.kernel.json.JSONException
createJSONSerializer
public com.liferay.portal.kernel.json.JSONSerializer createJSONSerializer()
- Specified by:
createJSONSerializer in interface com.liferay.portal.kernel.json.JSONFactory
deserialize
public java.lang.Object deserialize(com.liferay.portal.kernel.json.JSONObject jsonObj)
- Specified by:
deserialize in interface com.liferay.portal.kernel.json.JSONFactory
deserialize
public java.lang.Object deserialize(java.lang.String json)
- Specified by:
deserialize in interface com.liferay.portal.kernel.json.JSONFactory
getNullJSON
public java.lang.String getNullJSON()
- Specified by:
getNullJSON in interface com.liferay.portal.kernel.json.JSONFactory
looseDeserialize
public java.lang.Object looseDeserialize(java.lang.String json)
- Specified by:
looseDeserialize in interface com.liferay.portal.kernel.json.JSONFactory
looseDeserialize
public <T> T looseDeserialize(java.lang.String json,
java.lang.Class<T> clazz)
- Specified by:
looseDeserialize in interface com.liferay.portal.kernel.json.JSONFactory
looseSerialize
public java.lang.String looseSerialize(java.lang.Object object)
- Specified by:
looseSerialize in interface com.liferay.portal.kernel.json.JSONFactory
looseSerialize
public java.lang.String looseSerialize(java.lang.Object object,
com.liferay.portal.kernel.json.JSONTransformer jsonTransformer,
java.lang.Class<?> clazz)
- Specified by:
looseSerialize in interface com.liferay.portal.kernel.json.JSONFactory
looseSerialize
public java.lang.String looseSerialize(java.lang.Object object,
java.lang.String... includes)
- Specified by:
looseSerialize in interface com.liferay.portal.kernel.json.JSONFactory
looseSerializeDeep
public java.lang.String looseSerializeDeep(java.lang.Object object)
- Specified by:
looseSerializeDeep in interface com.liferay.portal.kernel.json.JSONFactory
looseSerializeDeep
public java.lang.String looseSerializeDeep(java.lang.Object object,
com.liferay.portal.kernel.json.JSONTransformer jsonTransformer,
java.lang.Class<?> clazz)
- Specified by:
looseSerializeDeep in interface com.liferay.portal.kernel.json.JSONFactory
serialize
public java.lang.String serialize(java.lang.Object object)
- Specified by:
serialize in interface com.liferay.portal.kernel.json.JSONFactory
serializeException
public java.lang.String serializeException(java.lang.Exception exception)
- Specified by:
serializeException in interface com.liferay.portal.kernel.json.JSONFactory