Liferay 6.1.2-ce-ga3

com.liferay.portal.json
Class JSONSerializerImpl

java.lang.Object
  extended by com.liferay.portal.json.JSONSerializerImpl
All Implemented Interfaces:
JSONSerializer

public class JSONSerializerImpl
extends Object
implements JSONSerializer

Wrapper over flexjson serializer.


Constructor Summary
JSONSerializerImpl()
           
 
Method Summary
 JSONSerializerImpl exclude(String... fields)
           
 JSONSerializerImpl include(String... fields)
           
 String serialize(Object target)
           
 String serializeDeep(Object target)
           
 JSONSerializerImpl transform(JSONTransformer jsonTransformer, Class<?>... types)
           
 JSONSerializerImpl transform(JSONTransformer jsonTransformer, String... fields)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JSONSerializerImpl

public JSONSerializerImpl()
Method Detail

exclude

public JSONSerializerImpl exclude(String... fields)
Specified by:
exclude in interface JSONSerializer

include

public JSONSerializerImpl include(String... fields)
Specified by:
include in interface JSONSerializer

serialize

public String serialize(Object target)
Specified by:
serialize in interface JSONSerializer

serializeDeep

public String serializeDeep(Object target)
Specified by:
serializeDeep in interface JSONSerializer

transform

public JSONSerializerImpl transform(JSONTransformer jsonTransformer,
                                    Class<?>... types)
Specified by:
transform in interface JSONSerializer

transform

public JSONSerializerImpl transform(JSONTransformer jsonTransformer,
                                    String... fields)
Specified by:
transform in interface JSONSerializer

Liferay 6.1.2-ce-ga3