public static class JSONUtility.JSONObject extends Object implements JSONUtility.JSONValue
| Modifier and Type | Field and Description |
|---|---|
protected HashMap<String,JSONUtility.JSONValue> |
m_nodes |
| Constructor and Description |
|---|
JSONObject() |
| Modifier and Type | Method and Description |
|---|---|
void |
check(JSONUtility.JSONContext ctx)
Check Value
|
JsonValue |
createJsonValue(JSONUtility.JSONContext ctx)
build Json
|
<T extends JSONUtility.JSONValue> |
defineArray(String name,
JSONUtility.JSONValueCreator<T> creator) |
<T extends JSONUtility.JSONValue> |
defineNode(String name,
JSONUtility.JSONValueCreator<T> creator) |
String |
get()
Get Value
|
String |
get(JSONUtility.JSONPath path) |
JSONUtility.JSONValue |
getValue(JSONUtility.JSONPath path) |
void |
parse(CharSequence text,
JSONUtility.JSONContext ctx) |
void |
parse(JsonValue obj,
JSONUtility.JSONContext ctx)
Parse JsonValue
|
void |
parse(Reader src,
JSONUtility.JSONContext ctx) |
void |
put(String value,
JSONUtility.JSONContext ctx)
Put Value
|
void |
put(String value,
JSONUtility.JSONContext ctx,
JSONUtility.JSONPath path) |
void |
putValue(JsonValue value,
JSONUtility.JSONContext ctx,
JSONUtility.JSONPath path) |
protected HashMap<String,JSONUtility.JSONValue> m_nodes
public void parse(JsonValue obj, JSONUtility.JSONContext ctx)
parse in interface JSONUtility.JSONValueobj - JsonValuectx - contextpublic void parse(CharSequence text, JSONUtility.JSONContext ctx)
public void parse(Reader src, JSONUtility.JSONContext ctx) throws IOException
IOExceptionpublic void check(JSONUtility.JSONContext ctx)
check in interface JSONUtility.JSONValuectx - contextpublic <T extends JSONUtility.JSONValue> T defineNode(String name, JSONUtility.JSONValueCreator<T> creator)
public <T extends JSONUtility.JSONValue> JSONUtility.JSONArray<T> defineArray(String name, JSONUtility.JSONValueCreator<T> creator)
public JsonValue createJsonValue(JSONUtility.JSONContext ctx)
createJsonValue in interface JSONUtility.JSONValuectx - contextpublic String get()
get in interface JSONUtility.JSONValuepublic String get(JSONUtility.JSONPath path)
public JSONUtility.JSONValue getValue(JSONUtility.JSONPath path)
public void put(String value, JSONUtility.JSONContext ctx)
put in interface JSONUtility.JSONValuevalue - valuectx - contextpublic void put(String value, JSONUtility.JSONContext ctx, JSONUtility.JSONPath path)
public void putValue(JsonValue value, JSONUtility.JSONContext ctx, JSONUtility.JSONPath path)
EDB Working Group at Mon Dec 15 16:45:05 JST 2025