public final class JSONtoFmModel extends Object
| Modifier and Type | Field and Description |
|---|---|
static boolean |
autoConvertISO8601 |
static String |
ROOT_ARRAY |
| Constructor and Description |
|---|
JSONtoFmModel() |
| Modifier and Type | Method and Description |
|---|---|
static List<Object> |
convertJSONArrayToList(com.fasterxml.jackson.databind.node.ArrayNode ja)
JSONArray is an ordered sequence of values -> convert to List (equivalent to Freemarker "sequence")
|
static Map<String,Object> |
convertJSONArrayToMap(String jsonString)
Convert JSON Array string to Freemarker-compatible data model
|
static Map<String,Object> |
convertJSONObjectToMap(com.fasterxml.jackson.databind.node.ObjectNode jo)
JSONObject is an unordered collection of name/value pairs -> convert to Map (equivalent to Freemarker "hash")
|
static Map<String,Object> |
convertJSONObjectToMap(String jsonString)
Convert JSON Object string to Freemarker-compatible data model
|
static Object |
convertJSONValue(com.fasterxml.jackson.databind.node.ValueNode valueNode)
Extract Java object from JSON
|
static String |
toString(Map<String,Object> map) |
public static String ROOT_ARRAY
public static boolean autoConvertISO8601
public static Map<String,Object> convertJSONObjectToMap(String jsonString) throws IOException
jsonString - StringIOExceptionpublic static Map<String,Object> convertJSONObjectToMap(com.fasterxml.jackson.databind.node.ObjectNode jo) throws IOException
IOExceptionpublic static Object convertJSONValue(com.fasterxml.jackson.databind.node.ValueNode valueNode)
public static Map<String,Object> convertJSONArrayToMap(String jsonString) throws IOException
jsonString - StringIOExceptionpublic static List<Object> convertJSONArrayToList(com.fasterxml.jackson.databind.node.ArrayNode ja) throws IOException
IOExceptionCopyright © 2005–2018 Alfresco Software. All rights reserved.