Liferay 6.2.0

com.liferay.portal.kernel.json
Interface JSONFactory

All Known Implementing Classes:
JSONFactoryImpl

public interface JSONFactory


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

Method Detail

convertJSONMLArrayToXML

String convertJSONMLArrayToXML(String jsonml)

convertJSONMLObjectToXML

String convertJSONMLObjectToXML(String jsonml)

convertXMLtoJSONMLArray

String convertXMLtoJSONMLArray(String xml)

convertXMLtoJSONMLObject

String convertXMLtoJSONMLObject(String xml)

createJavaScriptNormalizerJSONTransformer

JSONTransformer createJavaScriptNormalizerJSONTransformer(List<String> javaScriptAttributes)

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()

getUnmodifiableJSONObject

JSONObject getUnmodifiableJSONObject()

looseDeserialize

Object looseDeserialize(String json)

looseDeserialize

<T> T looseDeserialize(String json,
                       Class<T> clazz)

looseDeserializeSafe

Object looseDeserializeSafe(String json)

looseDeserializeSafe

<T> T looseDeserializeSafe(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)

looseSerializeDeep

String looseSerializeDeep(Object object,
                          JSONTransformer jsonTransformer,
                          Class<?> clazz)

serialize

String serialize(Object object)

serializeException

String serializeException(Exception exception)

serializeThrowable

String serializeThrowable(Throwable throwable)

Liferay 6.2.0