Modifier and Type | Method and Description |
---|---|
Json |
Json.add(Json el)
Add the specified
Json element to this array. |
Json |
Json.add(java.lang.Object anything)
Add an arbitrary Java object to this
Json array. |
static Json |
Json.array()
Return a new constructed, empty JSON array.
|
Json |
Json.Factory.array()
Construct and return a JSON object.
|
Json |
Json.DefaultFactory.array() |
static Json |
Json.array(java.lang.Object... args)
Return a new JSON array filled up with the list of arguments.
|
Json |
Json.at(int index)
Return the
Json element at the specified index of this
Json array. |
Json |
Json.at(java.lang.String property)
Return the specified property of a
Json object or null
if there's no such property. |
Json |
Json.at(java.lang.String property,
Json def)
Return the specified property of a
Json object if it exists. |
Json |
Json.at(java.lang.String property,
java.lang.Object def)
Return the specified property of a
Json object if it exists. |
Json |
Json.atDel(int index)
Remove the element at the specified index from a
Json array and return
that element. |
Json |
Json.atDel(java.lang.String property)
Remove the specified property from a
Json object and return
that property. |
Json |
Json.Factory.bool(boolean value)
Construct and return a JSON boolean.
|
Json |
Json.DefaultFactory.bool(boolean x) |
Json |
Json.delAt(int index)
Remove the element at the specified index from a
Json array. |
Json |
Json.delAt(java.lang.String property)
Delete the specified property from a
Json object. |
Json |
Json.dup()
Return a clone (a duplicate) of this
Json entity. |
static Json |
Json.make(java.lang.Object anything)
Convert an arbitrary Java instance to a
Json instance. |
Json |
Json.Factory.make(java.lang.Object anything)
Construct and return a JSON object.
|
Json |
Json.DefaultFactory.make(java.lang.Object anything) |
static Json |
Json.nil()
Return the
null Json instance. |
Json |
Json.Factory.nil()
Construct and return an object representing JSON
null . |
Json |
Json.DefaultFactory.nil() |
Json |
Json.Factory.number(java.lang.Number value)
Construct and return a JSON number.
|
Json |
Json.DefaultFactory.number(java.lang.Number x) |
static Json |
Json.object()
Return a newly constructed, empty JSON object.
|
Json |
Json.Factory.object()
Construct and return a JSON object.
|
Json |
Json.DefaultFactory.object() |
static Json |
Json.object(java.lang.Object... args)
Return a new JSON object initialized from the passed list of
name/value pairs.
|
static Json |
Json.read(java.text.CharacterIterator it)
Parse a JSON entity from a
CharacterIterator . |
static Json |
Json.read(java.lang.String jsonAsString)
Parse a JSON entity from its string representation.
|
static Json |
Json.read(java.net.URL location)
Parse a JSON entity from a
URL . |
Json |
Json.remove(Json el)
Remove the specified element from a
Json array. |
Json |
Json.remove(java.lang.Object anything)
Remove the specified Java object (converted to a Json instance)
from a
Json array. |
Json |
Json.set(int index,
java.lang.Object value)
Change the value of a JSON array element.
|
Json |
Json.set(java.lang.String property,
Json value)
Set a
Json objects's property. |
Json |
Json.set(java.lang.String property,
java.lang.Object value)
Set a
Json objects's property. |
Json |
Json.Factory.string(java.lang.String value)
Construct and return a JSON string.
|
Json |
Json.DefaultFactory.string(java.lang.String x) |
Json |
Json.up()
Return the
Json entity, if any, enclosing this
Json . |
Json |
Json.Schema.validate(Json document)
Validate a JSON document according to this schema.
|
Json |
Json.with(Json object)
Combine this object or array with the passed in object or array.
|
Modifier and Type | Method and Description |
---|---|
java.util.List<Json> |
Json.asJsonList()
Return the underlying
List representation of a Json array. |
java.util.Map<java.lang.String,Json> |
Json.asJsonMap()
Return the underlying map of properties of a
Json object. |
Modifier and Type | Method and Description |
---|---|
Json |
Json.add(Json el)
Add the specified
Json element to this array. |
Json |
Json.at(java.lang.String property,
Json def)
Return the specified property of a
Json object if it exists. |
void |
Json.attachTo(Json enclosing)
Explicitly set the parent of this element.
|
Json |
Json.remove(Json el)
Remove the specified element from a
Json array. |
static Json.Schema |
Json.schema(Json S) |
static Json.Schema |
Json.schema(Json S,
java.net.URI uri) |
Json |
Json.set(java.lang.String property,
Json value)
Set a
Json objects's property. |
Json |
Json.Schema.validate(Json document)
Validate a JSON document according to this schema.
|
Json |
Json.with(Json object)
Combine this object or array with the passed in object or array.
|
Constructor and Description |
---|
Json(Json enclosing) |
Copyright © 2014. All Rights Reserved.