Uses of Class
com.blackrook.json.JSONObject
Packages that use JSONObject
Package
Description
Contains a set of classes for JSON parsing and object handling.
Contains some pre-packaged converters.
-
Uses of JSONObject in com.blackrook.json
Fields in com.blackrook.json declared as JSONObjectModifier and TypeFieldDescriptionstatic final JSONObjectJSONObject.NULLNull member.static final JSONObjectJSONObject.UNDEFINEDUndefined member.Methods in com.blackrook.json that return JSONObjectModifier and TypeMethodDescriptionstatic <T> JSONObjectJSONObject.create(T object) Creates a new JSON object using the default converter set.static <T> JSONObjectJSONObject.create(T object, JSONConverterSet converterSet) Creates a new JSON object using an associated specific converter set.static JSONObjectJSONObject.createEmptyArray()Creates a JSONObject that represents an empty array type.static JSONObjectJSONObject.createEmptyObject()Creates a JSONObject that represents an empty object type.JSONObject.get(int index) Gets an object member of this JSONObject by index, if this is an array.Gets an object member of this JSONObject by name.JSONConverter.getJSONObject(T object) Returns a JSON object that represents this object instance (and its contents).JSONDefaultConverter.getJSONObject(Object object) JSONObject.pop()Removes a member from the ending index of this JSONObject, but only if this is an array.static JSONObjectReads in a new JSONObject from a File.static JSONObjectJSONReader.readJSON(InputStream in) Reads in a new JSONObject from an InputStream.static JSONObjectReads in a new JSONObject from a Reader.static JSONObjectReads in a new JSONObject from a string of characters.JSONObject.removeAt(int index) Removes a member from a specific index in this JSONObject, shifting the contents, but only if this is an array.Methods in com.blackrook.json that return types with arguments of type JSONObjectModifier and TypeMethodDescriptionprotected List<JSONObject>JSONObject.getList()Returns the underlying value as a list of objects.protected Map<String,JSONObject> JSONObject.getMap()Returns the underlying value as a map of string to object.Methods in com.blackrook.json with parameters of type JSONObjectModifier and TypeMethodDescriptionvoidJSONObject.addAt(int index, JSONObject object) Adds a member to a specific index in this JSONObject, shifting the contents, but only if this is an array.voidJSONObject.addMember(String name, JSONObject object) Adds a member to this JSONObject, if this is an Object type.voidJSONObject.append(JSONObject object) Appends a member to the end of this JSONObject, but only if this is an array.JSONConverter.getObject(JSONObject jsonObject) Returns a Java Object that is equivalent to the input JSON Object.JSONDefaultConverter.getObject(JSONObject jsonObject) Returns null.voidJSONObject.push(JSONObject object) Adds a member to the end of this JSONObject, but only if this is an array.voidJSONWriter.write(JSONObject jsonObject, OutputStream out) Writes a JSONObject out to the following output stream.voidJSONWriter.write(JSONObject jsonObject, Writer writer) Writes a JSONObject out to the following output stream.static voidJSONWriter.writeJSON(JSONObject jsonObject, JSONWriter.Options options, OutputStream out) Writes a JSONObject out to the following output stream.static voidJSONWriter.writeJSON(JSONObject jsonObject, JSONWriter.Options options, Writer writer) Writes a JSONObject out to the following output stream.static voidJSONWriter.writeJSON(JSONObject jsonObject, OutputStream out) Writes a JSONObject out to the following output stream.static voidJSONWriter.writeJSON(JSONObject jsonObject, Writer writer) Writes a JSONObject out to the following output stream.static StringJSONWriter.writeJSONString(JSONObject jsonObject) Writes a JSONObject out to the following output stream.static StringJSONWriter.writeJSONString(JSONObject jsonObject, JSONWriter.Options options) Writes a JSONObject out to the following output stream.JSONWriter.writeString(JSONObject jsonObject) Writes a JSONObject out to the following output stream. -
Uses of JSONObject in com.blackrook.json.converters
Methods in com.blackrook.json.converters that return JSONObjectModifier and TypeMethodDescriptionJSONDateFormatConverter.getJSONObject(Date object) JSONDateMillisConverter.getJSONObject(Date object) Methods in com.blackrook.json.converters with parameters of type JSONObjectModifier and TypeMethodDescriptionJSONDateFormatConverter.getObject(JSONObject jsonObject) JSONDateMillisConverter.getObject(JSONObject jsonObject)