public class JSON extends Object
| Constructor and Description |
|---|
JSON() |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
getBoolean(org.neo4j.shell.util.json.JSONObject o,
String key) |
static boolean |
getBoolean(org.neo4j.shell.util.json.JSONObject o,
String key,
boolean defaultValue) |
static Integer |
getInt(org.neo4j.shell.util.json.JSONObject o,
String key) |
static org.neo4j.shell.util.json.JSONArray |
getJSONArray(org.neo4j.shell.util.json.JSONObject o,
String key) |
static org.neo4j.shell.util.json.JSONObject |
getJSONObject(org.neo4j.shell.util.json.JSONObject o,
String key) |
static String |
getString(org.neo4j.shell.util.json.JSONObject o,
String key) |
static <T> T[] |
json2JavaArray(org.neo4j.shell.util.json.JSONArray jsonArray,
T... exclusions)
Copies the contents of
JSONArray into a newly allocated Java
String array which is then returned. |
static <T> Set<T> |
jsonArray2JavaSet(org.neo4j.shell.util.json.JSONArray jsonArray) |
@SafeVarargs public static <T> T[] json2JavaArray(org.neo4j.shell.util.json.JSONArray jsonArray, T... exclusions) throws org.neo4j.shell.util.json.JSONException
Copies the contents of JSONArray into a newly allocated Java
String array which is then returned.
If exclusion Strings are specified, those elements will not be copied into the new Java array.
jsonArray - A JSONArray of primitives to be converted into a Java array.exclusions - Elements in jsonArray to be excluded from the new
Java array.org.neo4j.shell.util.json.JSONExceptionpublic static String getString(org.neo4j.shell.util.json.JSONObject o, String key) throws org.neo4j.shell.util.json.JSONException
org.neo4j.shell.util.json.JSONExceptionpublic static org.neo4j.shell.util.json.JSONObject getJSONObject(org.neo4j.shell.util.json.JSONObject o,
String key)
throws org.neo4j.shell.util.json.JSONException
org.neo4j.shell.util.json.JSONExceptionpublic static org.neo4j.shell.util.json.JSONArray getJSONArray(org.neo4j.shell.util.json.JSONObject o,
String key)
throws org.neo4j.shell.util.json.JSONException
org.neo4j.shell.util.json.JSONExceptionpublic static boolean getBoolean(org.neo4j.shell.util.json.JSONObject o,
String key,
boolean defaultValue)
throws org.neo4j.shell.util.json.JSONException
org.neo4j.shell.util.json.JSONExceptionpublic static boolean getBoolean(org.neo4j.shell.util.json.JSONObject o,
String key)
throws org.neo4j.shell.util.json.JSONException
org.neo4j.shell.util.json.JSONExceptionpublic static Integer getInt(org.neo4j.shell.util.json.JSONObject o, String key) throws org.neo4j.shell.util.json.JSONException
org.neo4j.shell.util.json.JSONExceptionpublic static <T> Set<T> jsonArray2JavaSet(org.neo4j.shell.util.json.JSONArray jsonArray) throws org.neo4j.shell.util.json.JSONException
org.neo4j.shell.util.json.JSONExceptionCopyright © 2018 JULIE Lab Jena, Germany. All rights reserved.