com.liferay.portal.kernel.json
Interface JSONFactory
public interface JSONFactory
convertJSONMLArrayToXML
String convertJSONMLArrayToXML(String jsonml)
convertJSONMLObjectToXML
String convertJSONMLObjectToXML(String jsonml)
convertXMLtoJSONMLArray
String convertXMLtoJSONMLArray(String xml)
convertXMLtoJSONMLObject
String convertXMLtoJSONMLObject(String xml)
createJSONArray
JSONArray createJSONArray()
createJSONArray
JSONArray createJSONArray(String json)
throws JSONException
- Throws:
JSONException
createJSONDeserializer
<T> JSONDeserializer<T> createJSONDeserializer()
createJSONObject
JSONObject createJSONObject()
createJSONObject
JSONObject createJSONObject(String json)
throws JSONException
- Throws:
JSONException
createJSONSerializer
JSONSerializer createJSONSerializer()
deserialize
Object deserialize(JSONObject jsonObj)
deserialize
Object deserialize(String json)
getNullJSON
String getNullJSON()
looseDeserialize
Object looseDeserialize(String json)
looseDeserialize
<T> T looseDeserialize(String json,
Class<T> clazz)
looseSerialize
String looseSerialize(Object object)
looseSerialize
String looseSerialize(Object object,
JSONTransformer jsonTransformer,
Class<?> clazz)
looseSerialize
String looseSerialize(Object object,
String... includes)
looseSerializeDeep
String looseSerializeDeep(Object object)
serialize
String serialize(Object object)
serializeException
String serializeException(Exception exception)