|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectfr.paris.lutece.plugins.rest.util.json.JSONUtil
public final class JSONUtil
JSON Utils
| Method Summary | |
|---|---|
static java.lang.String |
formatError(java.lang.String strMessage,
int nCode)
Format error as JSON |
static net.sf.json.JSONObject |
json(java.util.Map model)
Convert a model into a JSON object |
static java.lang.String |
model2Json(java.util.Map model)
Convert a model into a JSON formatted string |
static java.lang.String |
model2Xml(java.util.Map model)
Convert a model into an XML generated string |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static java.lang.String model2Json(java.util.Map model)
model - The model
public static java.lang.String model2Xml(java.util.Map model)
model - The model
public static net.sf.json.JSONObject json(java.util.Map model)
model - The model
public static java.lang.String formatError(java.lang.String strMessage,
int nCode)
strMessage - the error messagenCode - The error code
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||