public class JSONSerializerImpl
extends Object
implements com.liferay.portal.kernel.json.JSONSerializer
Constructor and Description |
---|
JSONSerializerImpl() |
Modifier and Type | Method and Description |
---|---|
JSONSerializerImpl |
exclude(String... fields) |
JSONSerializerImpl |
include(String... fields) |
String |
serialize(Object target) |
String |
serializeDeep(Object target) |
JSONSerializerImpl |
transform(com.liferay.portal.kernel.json.JSONTransformer jsonTransformer,
Class<?> type) |
JSONSerializerImpl |
transform(com.liferay.portal.kernel.json.JSONTransformer jsonTransformer,
String field) |
public JSONSerializerImpl exclude(String... fields)
exclude
in interface com.liferay.portal.kernel.json.JSONSerializer
public JSONSerializerImpl include(String... fields)
include
in interface com.liferay.portal.kernel.json.JSONSerializer
public String serialize(Object target)
serialize
in interface com.liferay.portal.kernel.json.JSONSerializer
public String serializeDeep(Object target)
serializeDeep
in interface com.liferay.portal.kernel.json.JSONSerializer
public JSONSerializerImpl transform(com.liferay.portal.kernel.json.JSONTransformer jsonTransformer, Class<?> type)
transform
in interface com.liferay.portal.kernel.json.JSONSerializer
public JSONSerializerImpl transform(com.liferay.portal.kernel.json.JSONTransformer jsonTransformer, String field)
transform
in interface com.liferay.portal.kernel.json.JSONSerializer