Constructor and Description |
---|
JsonValue(List<JsonValue> array)
Creates a JSON array.
|
JsonValue(Map<String,JsonValue> object)
Creates a JSON object.
|
JsonValue(Object value)
Creates a JSON value (such as a string or integer).
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
List<JsonValue> |
getArray()
Gets the JSON array elements.
|
Map<String,JsonValue> |
getObject()
Gets the JSON object.
|
Object |
getValue()
Gets the JSON value.
|
int |
hashCode() |
boolean |
isNull()
Determines if the value is "null" or not.
|
String |
toString() |
public JsonValue(Object value)
value
- the valuepublic JsonValue(List<JsonValue> array)
array
- the array elementspublic Object getValue()
public List<JsonValue> getArray()
public Map<String,JsonValue> getObject()
public boolean isNull()
Copyright © 2012–2023 Michael Angstadt. All rights reserved.