Added reference for JSONArray, JSONObject, loadJSONArray(), loadJSONObject(), saveJSONArray(), saveJSONObject()

This commit is contained in:
Scott Murray
2013-05-28 12:29:14 -07:00
parent 751d76db1c
commit 8a04899430
3 changed files with 64 additions and 7 deletions

View File

@@ -104,6 +104,11 @@ import processing.core.PApplet;
* @author JSON.org
* @version 2012-12-01
* @webref data:composite
* @see JSONArray
* @see PApplet#loadJSONObject(String)
* @see PApplet#loadJSONArray(String)
* @see PApplet#saveJSONObject(JSONObject, String)
* @see PApplet#saveJSONArray(JSONArray, String)
*/
public class JSONObject {
/**
@@ -189,6 +194,7 @@ public class JSONObject {
/**
* Construct an empty JSONObject.
* @nowebref
*/
public JSONObject() {
this.map = new HashMap<String, Object>();
@@ -215,6 +221,9 @@ public class JSONObject {
// }
/**
* @nowebref
*/
public JSONObject(Reader reader) {
this(new JSONTokener(reader));
}
@@ -299,6 +308,9 @@ public class JSONObject {
}
/**
* @nowebref
*/
public JSONObject(IntDict dict) {
map = new HashMap<String, Object>();
for (int i = 0; i < dict.size(); i++) {
@@ -307,6 +319,9 @@ public class JSONObject {
}
/**
* @nowebref
*/
public JSONObject(FloatDict dict) {
map = new HashMap<String, Object>();
for (int i = 0; i < dict.size(); i++) {
@@ -315,6 +330,9 @@ public class JSONObject {
}
/**
* @nowebref
*/
public JSONObject(StringDict dict) {
map = new HashMap<String, Object>();
for (int i = 0; i < dict.size(); i++) {