Home | History | Annotate | Download | only in json

Lines Matching defs:JSONObject

41  * <code>Boolean</code>, <code>JSONArray</code>, <code>JSONObject</code>,
43 * <code>JSONObject.NULL object</code>.
185 this.myArrayList.add(new JSONObject((Map)o, includeSuperClass));
186 } else if (!JSONObject.isStandardProperty(o.getClass())) {
187 this.myArrayList.add(new JSONObject(o, includeSuperClass));
224 if (JSONObject.isStandardProperty(o.getClass())) {
227 this.myArrayList.add(new JSONObject(o,includeSuperClass));
332 * Get the JSONObject associated with an index.
334 * @return A JSONObject value.
336 * value is not a JSONObject
338 public JSONObject getJSONObject(int index) throws JSONException {
340 if (o instanceof JSONObject) {
341 return (JSONObject)o;
344 "] is not a JSONObject.");
380 return JSONObject.NULL.equals(opt(index));
400 sb.append(JSONObject.valueToString(this.myArrayList.get(i)));
533 * Get the optional JSONObject associated with an index.
535 * no value, or if the value is not a JSONObject.
538 * @return A JSONObject value.
540 public JSONObject optJSONObject(int index) {
542 return o instanceof JSONObject ? (JSONObject)o : null;
636 JSONObject.testValidity(d);
668 * JSONObject which is produced from a Map.
673 put(new JSONObject(value));
681 * Boolean, Double, Integer, JSONArray, JSONObject, Long, or String, or the
682 * JSONObject.NULL object.
769 * JSONObject which is produced from a Map.
777 put(index, new JSONObject(value));
788 * Boolean, Double, Integer, JSONArray, JSONObject, Long, or String, or the
789 * JSONObject.NULL object.
795 JSONObject.testValidity(value);
803 put(JSONObject.NULL);
825 * Produce a JSONObject by combining a JSONArray of names with the values
829 * @return A JSONObject, or null if there are no names or if this JSONArray
833 public JSONObject toJSONObject(JSONArray names) throws JSONException {
837 JSONObject jo = new JSONObject();
899 sb.append(JSONObject.valueToString(this.myArrayList.get(0),
911 sb.append(JSONObject.valueToString(this.myArrayList.get(i),
945 if (v instanceof JSONObject) {
946 ((JSONObject)v).write(writer);
950 writer.write(JSONObject.valueToString(v));