Liferay 6.2-ce-ga5

com.liferay.portal.json
Class JSONFactoryImpl

java.lang.Object
  extended by com.liferay.portal.json.JSONFactoryImpl
All Implemented Interfaces:
JSONFactory

public class JSONFactoryImpl
extends Object
implements JSONFactory


Constructor Summary
JSONFactoryImpl()
           
 
Method Summary
 String convertJSONMLArrayToXML(String jsonml)
           
 String convertJSONMLObjectToXML(String jsonml)
           
 String convertXMLtoJSONMLArray(String xml)
           
 String convertXMLtoJSONMLObject(String xml)
           
 JSONTransformer createJavaScriptNormalizerJSONTransformer(List<String> javaScriptAttributes)
           
 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()
           
 JSONObject getUnmodifiableJSONObject()
           
 Object looseDeserialize(String json)
           
<T> T
looseDeserialize(String json, Class<T> clazz)
           
 Object looseDeserializeSafe(String json)
           
<T> T
looseDeserializeSafe(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 looseSerializeDeep(Object object, JSONTransformer jsonTransformer, Class<?> clazz)
           
 String serialize(Object object)
           
 String serializeException(Exception exception)
          Deprecated. 
 String serializeThrowable(Throwable throwable)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JSONFactoryImpl

public JSONFactoryImpl()
Method Detail

convertJSONMLArrayToXML

public String convertJSONMLArrayToXML(String jsonml)
Specified by:
convertJSONMLArrayToXML in interface JSONFactory

convertJSONMLObjectToXML

public String convertJSONMLObjectToXML(String jsonml)
Specified by:
convertJSONMLObjectToXML in interface JSONFactory

convertXMLtoJSONMLArray

public String convertXMLtoJSONMLArray(String xml)
Specified by:
convertXMLtoJSONMLArray in interface JSONFactory

convertXMLtoJSONMLObject

public String convertXMLtoJSONMLObject(String xml)
Specified by:
convertXMLtoJSONMLObject in interface JSONFactory

createJavaScriptNormalizerJSONTransformer

public JSONTransformer createJavaScriptNormalizerJSONTransformer(List<String> javaScriptAttributes)
Specified by:
createJavaScriptNormalizerJSONTransformer in interface JSONFactory

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

createJSONDeserializer

public <T> JSONDeserializer<T> createJSONDeserializer()
Specified by:
createJSONDeserializer in interface JSONFactory

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

createJSONSerializer

public JSONSerializer createJSONSerializer()
Specified by:
createJSONSerializer in interface JSONFactory

deserialize

public Object deserialize(JSONObject jsonObj)
Specified by:
deserialize in interface JSONFactory

deserialize

public Object deserialize(String json)
Specified by:
deserialize in interface JSONFactory

getNullJSON

public String getNullJSON()
Specified by:
getNullJSON in interface JSONFactory

getUnmodifiableJSONObject

public JSONObject getUnmodifiableJSONObject()
Specified by:
getUnmodifiableJSONObject in interface JSONFactory

looseDeserialize

public Object looseDeserialize(String json)
Specified by:
looseDeserialize in interface JSONFactory

looseDeserialize

public <T> T looseDeserialize(String json,
                              Class<T> clazz)
Specified by:
looseDeserialize in interface JSONFactory

looseDeserializeSafe

public Object looseDeserializeSafe(String json)
Specified by:
looseDeserializeSafe in interface JSONFactory

looseDeserializeSafe

public <T> T looseDeserializeSafe(String json,
                                  Class<T> clazz)
Specified by:
looseDeserializeSafe in interface JSONFactory

looseSerialize

public String looseSerialize(Object object)
Specified by:
looseSerialize in interface JSONFactory

looseSerialize

public String looseSerialize(Object object,
                             JSONTransformer jsonTransformer,
                             Class<?> clazz)
Specified by:
looseSerialize in interface JSONFactory

looseSerialize

public String looseSerialize(Object object,
                             String... includes)
Specified by:
looseSerialize in interface JSONFactory

looseSerializeDeep

public String looseSerializeDeep(Object object)
Specified by:
looseSerializeDeep in interface JSONFactory

looseSerializeDeep

public String looseSerializeDeep(Object object,
                                 JSONTransformer jsonTransformer,
                                 Class<?> clazz)
Specified by:
looseSerializeDeep in interface JSONFactory

serialize

public String serialize(Object object)
Specified by:
serialize in interface JSONFactory

serializeException

@Deprecated
public String serializeException(Exception exception)
Deprecated. 

Specified by:
serializeException in interface JSONFactory

serializeThrowable

public String serializeThrowable(Throwable throwable)
Specified by:
serializeThrowable in interface JSONFactory

Liferay 6.2-ce-ga5