public class JSONObject extends JSONComplex
{"name":"Homer", "age":40, "children":["Bart", "Maggie", "Lisa"]}
Constructor and Description |
---|
JSONObject() |
Modifier and Type | Method and Description |
---|---|
boolean |
containsKey(String aKey) |
boolean |
equals(Object o) |
JSONValue |
get(String aKey)
Utility method, get the element with specified name without having to
retrieve the map first using getValue().
|
HashMap<String,JSONValue> |
getValue() |
int |
hashCode() |
void |
put(String key,
JSONValue value) |
protected String |
render(boolean aPretty,
String aIndent)
Convert the JSON value into a string representation (JSON representation).
|
int |
size() |
Object |
strip()
Remove all JSON related information.
|
String |
toString() |
public int size()
size
in class JSONComplex
protected String render(boolean aPretty, String aIndent)
JSONValue
public boolean containsKey(String aKey)
public JSONValue get(String aKey)
aKey
- The key for which you want to retrieve the element.Copyright © 2012. All Rights Reserved.