Package | Description |
---|---|
org.elkoserver.json |
Utilities for working with JSON (JavaScript Object Notation) objects.
|
Modifier and Type | Method and Description |
---|---|
JSONArray |
JSONArray.getArray(int index)
Obtain an array-valued element value.
|
JSONArray |
JSONObject.getArray(String name)
Obtain an array property value.
|
JSONArray |
JSONObject.optArray(String name)
Obtain an array property value or an empty array if the property has no
value.
|
JSONArray |
JSONObject.optArray(String name,
JSONArray defaultValue)
Obtain an array property value or a default value if the property has no
value.
|
Modifier and Type | Method and Description |
---|---|
void |
JSONLiteral.addParameter(String param,
JSONArray value)
Add a
JSONArray parameter to an incomplete literal. |
void |
JSONLiteral.addParameterOpt(String param,
JSONArray value)
Add an optional
JSONArray parameter to an incomplete
literal. |
JSONArray |
JSONObject.optArray(String name,
JSONArray defaultValue)
Obtain an array property value or a default value if the property has no
value.
|
Copyright © 2017. All rights reserved.