Liferay 6.1.0

com.liferay.portal.kernel.json
Interface JSONFactory


public interface JSONFactory


Method Summary
 String convertJSONMLArrayToXML(String jsonml)
           
 String convertJSONMLObjectToXML(String jsonml)
           
 String convertXMLtoJSONMLArray(String xml)
           
 String convertXMLtoJSONMLObject(String xml)
           
 JSONArray createJSONArray()
           
 JSONArray createJSONArray(String json)
           
<T> JSONDeserializer<T>
createJSONDeserializer()
           
 JSONObject createJSONObject()
           
 JSONObject createJSONObject(String json)
           
 JSONSerializer createJSONSerializer()
           
 Object deserialize(JSONObject jsonObj)
           
 Object deserialize(String json)
           
 String getNullJSON()
           
 Object looseDeserialize(String json)
           
<T> T
looseDeserialize(String json, Class<T> clazz)
           
 String looseSerialize(Object object)
           
 String looseSerialize(Object object, JSONTransformer jsonTransformer, Class<?> clazz)
           
 String looseSerialize(Object object, String... includes)
           
 String looseSerializeDeep(Object object)
           
 String serialize(Object object)
           
 String serializeException(Exception exception)
           
 

Method Detail

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)

Liferay 6.1.0