public final class JSONUtil extends Object
| Modifier and Type | Method and Description |
|---|---|
static String |
formatError(String strMessage,
int nCode)
Format error as JSON
|
static net.sf.json.JSONObject |
json(Map model)
Convert a model into a JSON object
|
static String |
model2Json(Map model)
Convert a model into a JSON formatted string
|
static String |
model2Xml(Map model)
Convert a model into an XML generated string
|
public static String model2Json(Map model)
model - The modelpublic static String model2Xml(Map model)
model - The modelpublic static net.sf.json.JSONObject json(Map model)
model - The modelCopyright © 2015 City of Paris. All rights reserved.