Uses of Class
com.blackrook.json.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
Modifier and TypeFieldDescriptionstatic final JSONObject
JSONObject.NULL
Null member.static final JSONObject
JSONObject.UNDEFINED
Undefined member.Modifier and TypeMethodDescriptionstatic <T> JSONObject
JSONObject.create
(T object) Creates a new JSON object using the default converter set.static <T> JSONObject
JSONObject.create
(T object, JSONConverterSet converterSet) Creates a new JSON object using an associated specific converter set.static JSONObject
JSONObject.createEmptyArray()
Creates a JSONObject that represents an empty array type.static JSONObject
JSONObject.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 beginning index of this JSONObject, shifting the contents, but only if this is an array.static JSONObject
JSONReader.readJSON
(InputStream in) Reads in a new JSONObject from an InputStream.static JSONObject
Reads in a new JSONObject from a Reader.static JSONObject
Reads 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.Modifier 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.Modifier and TypeMethodDescriptionvoid
JSONObject.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.void
JSONObject.addMember
(String name, JSONObject object) Adds a member to this JSONObject, if this is an Object type.void
JSONObject.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.void
JSONObject.push
(JSONObject object) Adds a member to the beginning of this JSONObject, shifting the contents, but only if this is an array.void
JSONWriter.write
(JSONObject jsonObject, OutputStream out) Writes a JSONObject out to the following output stream.void
JSONWriter.write
(JSONObject jsonObject, Writer writer) Writes a JSONObject out to the following output stream.static void
JSONWriter.writeJSON
(JSONObject jsonObject, JSONWriter.Options options, OutputStream out) Writes a JSONObject out to the following output stream.static void
JSONWriter.writeJSON
(JSONObject jsonObject, JSONWriter.Options options, Writer writer) Writes a JSONObject out to the following output stream.static void
JSONWriter.writeJSON
(JSONObject jsonObject, OutputStream out) Writes a JSONObject out to the following output stream.static void
JSONWriter.writeJSON
(JSONObject jsonObject, Writer writer) Writes a JSONObject out to the following output stream.static String
JSONWriter.writeJSONString
(JSONObject jsonObject) Writes a JSONObject out to the following output stream.static String
JSONWriter.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
Modifier and TypeMethodDescriptionJSONDateFormatConverter.getJSONObject
(Date object) JSONDateMillisConverter.getJSONObject
(Date object) Modifier and TypeMethodDescriptionJSONDateFormatConverter.getObject
(JSONObject jsonObject) JSONDateMillisConverter.getObject
(JSONObject jsonObject)