public class Json extends Object
| Constructor and Description |
|---|
Json() |
| Modifier and Type | Method and Description |
|---|---|
static void |
returnDeepJson(javax.portlet.ResourceResponse response,
Object object) |
static void |
returnJson(javax.portlet.ResourceResponse response,
Map<String,Object> map,
Object object,
String fieldName) |
static void |
returnJson(javax.portlet.ResourceResponse response,
Object object) |
static void |
returnJsonMap(javax.portlet.ResourceResponse response,
Map<String,Object> map) |
public static void returnJson(javax.portlet.ResourceResponse response,
Map<String,Object> map,
Object object,
String fieldName)
response - The ResourceRespnonse taken from the controllermap - The backend map that needs to be returned to the the Frontend along with the liferay Objectobject - The liferay Object tha needs to be serialized and returned to the FrontEnd along with the mapfieldName - the name of the liferay Object in the jsonpublic static void returnJsonMap(javax.portlet.ResourceResponse response,
Map<String,Object> map)
response - The ResourceRespnonse taken from the controllermap - The backend map that needs to be returned to the the Frontendpublic static void returnJson(javax.portlet.ResourceResponse response,
Object object)
response - The ResourceRespnonse taken from the controllerobject - The liferay Object tha needs to be serialized and returned to the FrontEndpublic static void returnDeepJson(javax.portlet.ResourceResponse response,
Object object)
response - The ResourceRespnonse taken from the controllerobject - The liferay Object tha needs to be serialized and returned to the FrontEndCopyright © 2019. All Rights Reserved.