com.liferay.portal.json
Class JSONFactoryImpl
java.lang.Object
com.liferay.portal.json.JSONFactoryImpl
- All Implemented Interfaces:
- JSONFactory
public class JSONFactoryImpl
- extends Object
- implements JSONFactory
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JSONFactoryImpl
public JSONFactoryImpl()
createJSONArray
public JSONArray createJSONArray()
- Specified by:
createJSONArray
in interface JSONFactory
createJSONArray
public JSONArray createJSONArray(String json)
throws JSONException
- Specified by:
createJSONArray
in interface JSONFactory
- Throws:
JSONException
createJSONObject
public JSONObject createJSONObject()
- Specified by:
createJSONObject
in interface JSONFactory
createJSONObject
public JSONObject createJSONObject(String json)
throws JSONException
- Specified by:
createJSONObject
in interface JSONFactory
- Throws:
JSONException
deserialize
public Object deserialize(JSONObject jsonObj)
- Specified by:
deserialize
in interface JSONFactory
deserialize
public Object deserialize(String json)
- Specified by:
deserialize
in interface JSONFactory
serialize
public String serialize(Object obj)
- Specified by:
serialize
in interface JSONFactory