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(org.json.JSONArray 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(org.json.JSONObject 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 String |
toString(Map<String,Object> map) |
public static String ROOT_ARRAY
public static boolean autoConvertISO8601
public static Map<String,Object> convertJSONObjectToMap(String jsonString) throws org.json.JSONException
jsonString
- Stringorg.json.JSONException
public static Map<String,Object> convertJSONObjectToMap(org.json.JSONObject jo) throws org.json.JSONException
org.json.JSONException
public static Map<String,Object> convertJSONArrayToMap(String jsonString) throws org.json.JSONException
jsonString
- Stringorg.json.JSONException
public static List<Object> convertJSONArrayToList(org.json.JSONArray ja) throws org.json.JSONException
org.json.JSONException
Copyright © 2005–2017 Alfresco Software. All rights reserved.