A B C D E F G H I J M N O P R S T U V W
All Classes All Packages
All Classes All Packages
All Classes All Packages
A
- add(Object) - Method in class mjson.Json
-
Add an arbitrary Java object to this
Jsonarray. - add(Json) - Method in class mjson.Json
-
Add the specified
Jsonelement to this array. - apply(T) - Method in interface mjson.Json.Function
-
Applies this function to the given argument.
- array() - Static method in class mjson.Json
- array() - Method in class mjson.Json.DefaultFactory
- array() - Method in interface mjson.Json.Factory
-
Construct and return a JSON object.
- array(Object...) - Static method in class mjson.Json
-
Return a new JSON array filled up with the list of arguments.
- asBoolean() - Method in class mjson.Json
- asByte() - Method in class mjson.Json
- asChar() - Method in class mjson.Json
- asDouble() - Method in class mjson.Json
- asFloat() - Method in class mjson.Json
- asInteger() - Method in class mjson.Json
- asJsonList() - Method in class mjson.Json
- asJsonMap() - Method in class mjson.Json
- asList() - Method in class mjson.Json
- asLong() - Method in class mjson.Json
- asMap() - Method in class mjson.Json
- asShort() - Method in class mjson.Json
- asString() - Method in class mjson.Json
- at(int) - Method in class mjson.Json
-
Return the
Jsonelement at the specified index of thisJsonarray. - at(String) - Method in class mjson.Json
-
Return the specified property of a
Jsonobject ornullif there's no such property. - at(String, Object) - Method in class mjson.Json
-
Return the specified property of a
Jsonobject if it exists. - at(String, Json) - Method in class mjson.Json
-
Return the specified property of a
Jsonobject if it exists. - atDel(int) - Method in class mjson.Json
-
Remove the element at the specified index from a
Jsonarray and return that element. - atDel(String) - Method in class mjson.Json
-
Remove the specified property from a
Jsonobject and return that property. - attachFactory(Json.Factory) - Static method in class mjson.Json
-
Attach a thread-local Json
Json.Factoryto be used specifically by this thread. - attachTo(Json) - Method in class mjson.Json
-
Explicitly set the parent of this element.
B
- bool(boolean) - Method in class mjson.Json.DefaultFactory
- bool(boolean) - Method in interface mjson.Json.Factory
-
Construct and return a JSON boolean.
C
- collectWithOptions(Json...) - Method in class mjson.Json
-
Return an object representing the complete configuration of a merge.
D
- defaultFactory - Static variable in class mjson.Json
- DefaultFactory() - Constructor for class mjson.Json.DefaultFactory
- delAt(int) - Method in class mjson.Json
-
Remove the element at the specified index from a
Jsonarray. - delAt(String) - Method in class mjson.Json
-
Delete the specified property from a
Jsonobject. - detachFactory() - Static method in class mjson.Json
-
Clear the thread-local factory previously attached to this thread via the
Json.attachFactory(Factory)method. - dup() - Method in class mjson.Json
E
- escape(String) - Static method in class mjson.Json.help
-
Perform JSON escaping so that ", <, >, etc.
F
- factory() - Static method in class mjson.Json
-
Return the
Json.Factorycurrently in effect.
G
- getValue() - Method in class mjson.Json
H
- has(String) - Method in class mjson.Json
-
Return true if this
Jsonobject has the specified property and false otherwise. - help() - Constructor for class mjson.Json.help
I
- is(int, Object) - Method in class mjson.Json
-
Return
trueif and only if thisJsonarray has an element with the specified value at the specified index. - is(String, Object) - Method in class mjson.Json
-
Return
trueif and only if thisJsonobject has a property with the specified value. - isArray() - Method in class mjson.Json
- isBoolean() - Method in class mjson.Json
- isNull() - Method in class mjson.Json
- isNumber() - Method in class mjson.Json
- isObject() - Method in class mjson.Json
- isPrimitive() - Method in class mjson.Json
- isString() - Method in class mjson.Json
J
- Json - Class in mjson
-
Represents a JSON (JavaScript Object Notation) entity.
- Json() - Constructor for class mjson.Json
- Json(Json) - Constructor for class mjson.Json
- Json.DefaultFactory - Class in mjson
- Json.Factory - Interface in mjson
-
This interface defines how
Jsoninstances are constructed. - Json.Function<T,R> - Interface in mjson
- Json.help - Class in mjson
-
Exposes some internal methods that are useful for
Json.Factoryimplementations or other extension/layers of the library. - Json.MalformedJsonException - Exception in mjson
- Json.Schema - Interface in mjson
-
Represents JSON schema - a specific data format that a JSON entity must follow.
M
- make(Object) - Method in class mjson.Json.DefaultFactory
- make(Object) - Method in interface mjson.Json.Factory
-
Construct and return a JSON object.
- make(Object) - Static method in class mjson.Json
-
Convert an arbitrary Java instance to a
Jsoninstance. - MalformedJsonException(String) - Constructor for exception mjson.Json.MalformedJsonException
- mjson - package mjson
N
- nil() - Method in class mjson.Json.DefaultFactory
- nil() - Method in interface mjson.Json.Factory
-
Construct and return an object representing JSON
null. - nil() - Static method in class mjson.Json
- number(Number) - Method in class mjson.Json.DefaultFactory
- number(Number) - Method in interface mjson.Json.Factory
-
Construct and return a JSON number.
O
- object() - Method in class mjson.Json.DefaultFactory
- object() - Method in interface mjson.Json.Factory
-
Construct and return a JSON object.
- object() - Static method in class mjson.Json
- object(Object...) - Static method in class mjson.Json
-
Return a new JSON object initialized from the passed list of name/value pairs.
P
- pad(String) - Method in class mjson.Json
-
Json-pad this object as an argument to a callback function.
R
- read(String) - Static method in class mjson.Json
-
Parse a JSON entity from its string representation.
- read(URL) - Static method in class mjson.Json
-
Parse a JSON entity from a
URL. - read(CharacterIterator) - Static method in class mjson.Json
-
Parse a JSON entity from a
CharacterIterator. - remove(Object) - Method in class mjson.Json
-
Remove the specified Java object (converted to a Json instance) from a
Jsonarray. - remove(Json) - Method in class mjson.Json
-
Remove the specified element from a
Jsonarray. - resolvePointer(String, Json) - Static method in class mjson.Json.help
-
Given a JSON Pointer, as per RFC 6901, return the nested JSON value within the
elementparameter.
S
- schema(URI) - Static method in class mjson.Json
- schema(URI, Json.Function<URI, Json>) - Static method in class mjson.Json
- schema(Json) - Static method in class mjson.Json
- schema(Json, URI) - Static method in class mjson.Json
- set(int, Object) - Method in class mjson.Json
-
Change the value of a JSON array element.
- set(String, Object) - Method in class mjson.Json
-
Set a
Jsonobjects's property. - set(String, Json) - Method in class mjson.Json
-
Set a
Jsonobjects's property. - setGlobalFactory(Json.Factory) - Static method in class mjson.Json
-
Specify a global Json
Json.Factoryto be used by all threads that don't have a specific thread-local factory attached to them. - string(String) - Method in class mjson.Json.DefaultFactory
- string(String) - Method in interface mjson.Json.Factory
-
Construct and return a JSON string.
T
- toJson() - Method in interface mjson.Json.Schema
-
Return the JSON representation of the schema.
- toString(int) - Method in class mjson.Json
-
Return a string representation of
thisthat does not exceed a certain maximum length.
U
- up() - Method in class mjson.Json
-
Deprecated.This method is problematic and underused and it will be soon removed.
V
- validate(Json) - Method in interface mjson.Json.Schema
-
Validate a JSON document according to this schema.
W
- with(Json, Object...) - Method in class mjson.Json
-
Same as
with each option argument converted toJson.with(Json,Json...options)Jsonfirst. - with(Json, Json[]) - Method in class mjson.Json
-
Combine this object or array with the passed in object or array.
All Classes All Packages