public final class JSONUtil extends Object
Modifier and Type | Method and Description |
---|---|
static String |
formatError(String strMessage,
int nCode)
Format error as JSON
|
static com.fasterxml.jackson.databind.node.ObjectNode |
json(Map model)
Convert a model into a JSON object
|
static String |
model2Json(Map model)
Convert a model into a JSON formatted string
|
public static String model2Json(Map model)
model
- The modelpublic static com.fasterxml.jackson.databind.node.ObjectNode json(Map model)
model
- The modelCopyright © 2021 City of Paris. All rights reserved.