Skip to content

Commit f717657

Browse files
committed
Added reference for JSONObject methods getJSONObject(), setJSONObject(), setJSONArray()
1 parent 97d2eed commit f717657

1 file changed

Lines changed: 13 additions & 9 deletions

File tree

core/src/processing/data/JSONObject.java

Lines changed: 13 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -666,11 +666,11 @@ public boolean getBoolean(String key) {
666666
/**
667667
* Get the JSONArray value associated with a key.
668668
*
669-
* @brief Gets the JSONArray value associated with a key
670669
* @webref jsonobject:method
671-
* @param key A key string
672-
* @return A JSONArray which is the value.
673-
* @throws JSONException if the key is not found or if the value is not a JSONArray.
670+
* @brief Gets the JSONArray value associated with a key
671+
* @param key a key string
672+
* @return A JSONArray which is the value.
673+
* @throws JSONException if the key is not found or if the value is not a JSONArray.
674674
*/
675675
public JSONArray getJSONArray(String key) {
676676
Object object = this.get(key);
@@ -684,11 +684,11 @@ public JSONArray getJSONArray(String key) {
684684
/**
685685
* Get the JSONObject value associated with a key.
686686
*
687-
* @param key A key string.
688-
* @return A JSONObject which is the value.
689-
* @throws JSONException if the key is not found or if the value is not a JSONObject.
690687
* @webref jsonobject:method
691688
* @brief Gets the JSONObject value associated with a key
689+
* @param key a key string
690+
* @return A JSONObject which is the value.
691+
* @throws JSONException if the key is not found or if the value is not a JSONObject.
692692
*/
693693
public JSONObject getJSONObject(String key) {
694694
Object object = this.get(key);
@@ -1190,15 +1190,19 @@ public JSONObject setBoolean(String key, boolean value) {
11901190

11911191
/**
11921192
* @webref jsonobject:method
1193-
* @brief To come...
1193+
* @brief Sets the JSONObject value associated with a key
1194+
* @param key a key string
1195+
* @param value value to assign
11941196
*/
11951197
public JSONObject setJSONObject(String key, JSONObject value) {
11961198
return put(key, value);
11971199
}
11981200

11991201
/**
12001202
* @webref jsonobject:method
1201-
* @brief To come...
1203+
* @brief Sets the JSONArray value associated with a key
1204+
* @param key a key string
1205+
* @param value value to assign
12021206
*/
12031207
public JSONObject setJSONArray(String key, JSONArray value) {
12041208
return put(key, value);

0 commit comments

Comments
 (0)