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
View Source
- Author:
- Brian Wing Shun Chan
Method Summary |
com.liferay.portal.kernel.json.JSONArray |
createJSONArray()
|
com.liferay.portal.kernel.json.JSONArray |
createJSONArray(java.lang.String json)
|
com.liferay.portal.kernel.json.JSONObject |
createJSONObject()
|
com.liferay.portal.kernel.json.JSONObject |
createJSONObject(java.lang.String json)
|
java.lang.Object |
deserialize(com.liferay.portal.kernel.json.JSONObject jsonObj)
|
java.lang.Object |
deserialize(java.lang.String json)
|
java.lang.String |
serialize(java.lang.Object obj)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JSONFactoryImpl
public JSONFactoryImpl()
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
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
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
serialize
public java.lang.String serialize(java.lang.Object obj)
- Specified by:
serialize
in interface com.liferay.portal.kernel.json.JSONFactory