Package | Description |
---|---|
net.sf.json |
The core of the library
|
net.sf.json.processors |
Support for custom serialization
|
net.sf.json.util |
Miscelaneous utilities
|
Modifier and Type | Method and Description |
---|---|
JsonConfig |
JsonConfig.copy() |
Modifier and Type | Method and Description |
---|---|
JSONObject |
JSONObject.accumulate(java.lang.String key,
java.lang.Object value,
JsonConfig jsonConfig)
Accumulate values under a key.
|
void |
JSONObject.accumulateAll(java.util.Map map,
JsonConfig jsonConfig) |
void |
JSONArray.add(int index,
java.lang.Object value,
JsonConfig jsonConfig) |
boolean |
JSONArray.add(java.lang.Object value,
JsonConfig jsonConfig) |
boolean |
JSONArray.addAll(java.util.Collection collection,
JsonConfig jsonConfig) |
boolean |
JSONArray.addAll(int index,
java.util.Collection collection,
JsonConfig jsonConfig) |
boolean |
JSONArray.contains(java.lang.Object o,
JsonConfig jsonConfig) |
boolean |
JSONArray.containsAll(java.util.Collection collection,
JsonConfig jsonConfig) |
boolean |
JSONObject.containsValue(java.lang.Object value,
JsonConfig jsonConfig) |
JSONArray |
JSONArray.element(java.util.Collection value,
JsonConfig jsonConfig)
Append a value in the JSONArray, where the value will be a JSONArray which
is produced from a Collection.
|
JSONArray |
JSONArray.element(int index,
java.util.Collection value,
JsonConfig jsonConfig)
Put a value in the JSONArray, where the value will be a JSONArray which is
produced from a Collection.
|
JSONArray |
JSONArray.element(int index,
java.util.Map value,
JsonConfig jsonConfig)
Put a value in the JSONArray, where the value will be a JSONObject which
is produced from a Map.
|
JSONArray |
JSONArray.element(int index,
java.lang.Object value,
JsonConfig jsonConfig)
Put or replace an object value in the JSONArray.
|
JSONArray |
JSONArray.element(int index,
java.lang.String value,
JsonConfig jsonConfig)
Put or replace a String value in the JSONArray.
|
JSONArray |
JSONArray.element(java.util.Map value,
JsonConfig jsonConfig)
Put a value in the JSONArray, where the value will be a JSONObject which
is produced from a Map.
|
JSONArray |
JSONArray.element(java.lang.Object value,
JsonConfig jsonConfig)
Append an object value.
|
JSONObject |
JSONObject.element(java.lang.String key,
java.util.Collection value,
JsonConfig jsonConfig)
Put a key/value pair in the JSONObject, where the value will be a
JSONArray which is produced from a Collection.
|
JSONArray |
JSONArray.element(java.lang.String value,
JsonConfig jsonConfig)
Append a String value.
|
JSONObject |
JSONObject.element(java.lang.String key,
java.util.Map value,
JsonConfig jsonConfig)
Put a key/value pair in the JSONObject, where the value will be a
JSONObject which is produced from a Map.
|
JSONObject |
JSONObject.element(java.lang.String key,
java.lang.Object value,
JsonConfig jsonConfig)
Put a key/value pair in the JSONObject.
|
JSONObject |
JSONObject.elementOpt(java.lang.String key,
java.lang.Object value,
JsonConfig jsonConfig)
Put a key/value pair in the JSONObject, but only if the key and the value
are both non-null.
|
static JSONArray |
JSONArray.fromObject(java.lang.Object object,
JsonConfig jsonConfig)
Creates a JSONArray.
Inspects the object type to call the correct JSONArray factory method. |
static JSONObject |
JSONObject.fromObject(java.lang.Object object,
JsonConfig jsonConfig)
Creates a JSONObject.
Inspects the object type to call the correct JSONObject factory method. |
void |
JSONObject.putAll(java.util.Map map,
JsonConfig jsonConfig) |
boolean |
JSONArray.removeAll(java.util.Collection collection,
JsonConfig jsonConfig) |
boolean |
JSONArray.retainAll(java.util.Collection collection,
JsonConfig jsonConfig) |
java.lang.Object |
JSONArray.set(int index,
java.lang.Object value,
JsonConfig jsonConfig) |
static java.lang.Object |
JSONArray.toArray(JSONArray jsonArray,
JsonConfig jsonConfig)
Creates a java array from a JSONArray.
|
static java.lang.Object |
JSONArray.toArray(JSONArray jsonArray,
java.lang.Object root,
JsonConfig jsonConfig)
Creates a java array from a JSONArray.
|
static java.lang.Object |
JSONObject.toBean(JSONObject jsonObject,
JsonConfig jsonConfig)
Creates a bean from a JSONObject, with the specific configuration.
|
static java.lang.Object |
JSONObject.toBean(JSONObject jsonObject,
java.lang.Object bean,
JsonConfig jsonConfig)
Creates a bean from a JSONObject, with the specific configuration.
|
static java.lang.Object |
JSONSerializer.toJava(JSON json,
JsonConfig jsonConfig)
Transform a JSON value to a java object.
Depending on the configured values for conversion this will return a DynaBean, a bean, a List, or and array. |
static JSON |
JSONSerializer.toJSON(java.lang.Object object,
JsonConfig jsonConfig)
Creates a JSONObject, JSONArray or a JSONNull from object.
|
static java.util.List |
JSONArray.toList(JSONArray jsonArray,
JsonConfig jsonConfig)
Creates a List from a JSONArray.
|
static java.util.List |
JSONArray.toList(JSONArray jsonArray,
java.lang.Object root,
JsonConfig jsonConfig)
Creates a List from a JSONArray.
|
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
JsDateJsonValueProcessor.processArrayValue(java.lang.Object value,
JsonConfig jsonConfig) |
java.lang.Object |
JsonValueProcessor.processArrayValue(java.lang.Object value,
JsonConfig jsonConfig)
Processes the value an returns a suitable JSON value.
|
JSONObject |
JsDateJsonBeanProcessor.processBean(java.lang.Object bean,
JsonConfig jsonConfig)
Processes the input bean into a compatible JsDate.
|
JSONObject |
JsonBeanProcessor.processBean(java.lang.Object bean,
JsonConfig jsonConfig)
Processes the bean an returns a suitable JSONObject representation.
|
java.lang.Object |
JsDateJsonValueProcessor.processObjectValue(java.lang.String key,
java.lang.Object value,
JsonConfig jsonConfig) |
java.lang.Object |
JsonValueProcessor.processObjectValue(java.lang.String key,
java.lang.Object value,
JsonConfig jsonConfig)
Processes the value an returns a suitable JSON value.
|
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
JSONUtils.convertToJavaIdentifier(java.lang.String key,
JsonConfig jsonConfig)
Transformes the string into a valid Java Identifier.
The default strategy is JavaIdentifierTransformer.NOOP |
static org.apache.commons.beanutils.DynaBean |
JSONUtils.newDynaBean(JSONObject jsonObject,
JsonConfig jsonConfig)
Creates a new MorphDynaBean from a JSONObject.
|
java.lang.Object |
JSONTokener.nextValue(JsonConfig jsonConfig)
Get the next value.
|
Copyright © 2006-2014 Json-lib. All Rights Reserved.