Skip to content

Commit c03e61f

Browse files
committed
Added reference for JSONArray methods getJSONArray() and getJSONObject()
1 parent 9d7026c commit c03e61f

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

core/src/processing/data/JSONArray.java

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -391,12 +391,12 @@ public boolean getBoolean(int index) {
391391
/**
392392
* Get the JSONArray associated with an index.
393393
*
394-
* @param index The index must be between 0 and length() - 1.
395-
* @return A JSONArray value.
394+
* @webref jsonobject:method
395+
* @brief Gets the JSONArray associated with an index value
396+
* @param index must be between 0 and length() - 1.
397+
* @return A JSONArray value.
396398
* @throws JSONException If there is no value for the index. or if the
397399
* value is not a JSONArray
398-
* @webref jsonarray:method
399-
* @brief Get the JSONArray associated with an index
400400
*/
401401
public JSONArray getJSONArray(int index) {
402402
Object object = this.get(index);
@@ -410,12 +410,12 @@ public JSONArray getJSONArray(int index) {
410410
/**
411411
* Get the JSONObject associated with an index.
412412
*
413-
* @param index subscript
414-
* @return A JSONObject value.
413+
* @webref jsonobject:method
414+
* @brief Gets the JSONObject associated with an index value
415+
* @param index the index value of the object to get
416+
* @return A JSONObject value.
415417
* @throws JSONException If there is no value for the index or if the
416418
* value is not a JSONObject
417-
* @webref jsonarray:method
418-
* @brief Get the JSONObject associated with an index
419419
*/
420420
public JSONObject getJSONObject(int index) {
421421
Object object = this.get(index);

0 commit comments

Comments
 (0)