private JSONObject |
JSONObject._accumulate(java.lang.String key,
java.lang.Object value,
JsonConfig jsonConfig) |
|
private JSONArray |
JSONArray._addValue(java.lang.Object value,
JsonConfig jsonConfig) |
Append an object value.
|
private static JSONArray |
JSONArray._fromArray(boolean[] array,
JsonConfig jsonConfig) |
Construct a JSONArray from an boolean[].
|
private static JSONArray |
JSONArray._fromArray(byte[] array,
JsonConfig jsonConfig) |
Construct a JSONArray from an byte[].
|
private static JSONArray |
JSONArray._fromArray(char[] array,
JsonConfig jsonConfig) |
Construct a JSONArray from an char[].
|
private static JSONArray |
JSONArray._fromArray(double[] array,
JsonConfig jsonConfig) |
Construct a JSONArray from an double[].
|
private static JSONArray |
JSONArray._fromArray(float[] array,
JsonConfig jsonConfig) |
Construct a JSONArray from an float[].
|
private static JSONArray |
JSONArray._fromArray(int[] array,
JsonConfig jsonConfig) |
Construct a JSONArray from an int[].
|
private static JSONArray |
JSONArray._fromArray(long[] array,
JsonConfig jsonConfig) |
Construct a JSONArray from an long[].
|
private static JSONArray |
JSONArray._fromArray(short[] array,
JsonConfig jsonConfig) |
Construct a JSONArray from an short[].
|
private static JSONArray |
JSONArray._fromArray(java.lang.Enum e,
JsonConfig jsonConfig) |
Construct a JSONArray from an Enum value.
|
private static JSONArray |
JSONArray._fromArray(java.lang.Object[] array,
JsonConfig jsonConfig) |
|
private static JSONObject |
JSONObject._fromBean(java.lang.Object bean,
JsonConfig jsonConfig) |
Creates a JSONObject from a POJO.
Supports nested maps, POJOs, and arrays/collections.
|
private static JSONArray |
JSONArray._fromCollection(java.util.Collection collection,
JsonConfig jsonConfig) |
|
private static JSONObject |
JSONObject._fromDynaBean(org.apache.commons.beanutils.DynaBean bean,
JsonConfig jsonConfig) |
|
private static JSONArray |
JSONArray._fromJSONArray(JSONArray array,
JsonConfig jsonConfig) |
|
private static JSONObject |
JSONObject._fromJSONObject(JSONObject object,
JsonConfig jsonConfig) |
|
private static JSONArray |
JSONArray._fromJSONString(JSONString string,
JsonConfig jsonConfig) |
|
private static JSONObject |
JSONObject._fromJSONString(JSONString string,
JsonConfig jsonConfig) |
|
private static JSONArray |
JSONArray._fromJSONTokener(JSONTokener tokener,
JsonConfig jsonConfig) |
|
private static JSONObject |
JSONObject._fromJSONTokener(JSONTokener tokener,
JsonConfig jsonConfig) |
|
private static JSONObject |
JSONObject._fromMap(java.util.Map map,
JsonConfig jsonConfig) |
|
private static JSONArray |
JSONArray._fromString(java.lang.String string,
JsonConfig jsonConfig) |
|
private static JSONObject |
JSONObject._fromString(java.lang.String str,
JsonConfig jsonConfig) |
|
protected java.lang.Object |
AbstractJSON._processValue(java.lang.Object value,
JsonConfig jsonConfig) |
|
protected java.lang.Object |
JSONArray._processValue(java.lang.Object value,
JsonConfig jsonConfig) |
|
protected java.lang.Object |
JSONObject._processValue(java.lang.Object value,
JsonConfig jsonConfig) |
|
private JSONObject |
JSONObject._setInternal(java.lang.String key,
java.lang.Object value,
JsonConfig jsonConfig) |
Put a key/value pair in the JSONObject.
|
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(int index,
java.util.Collection collection,
JsonConfig jsonConfig) |
|
boolean |
JSONArray.addAll(java.util.Collection collection,
JsonConfig jsonConfig) |
|
private JSONArray |
JSONArray.addValue(java.lang.Object value,
JsonConfig jsonConfig) |
Append an object value.
|
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) |
|
private static java.lang.Object |
JSONObject.convertPropertyValueToArray(java.lang.String key,
java.lang.Object value,
java.lang.Class targetType,
JsonConfig jsonConfig,
java.util.Map classMap) |
|
private static java.util.Collection |
JSONObject.convertPropertyValueToCollection(java.lang.String key,
java.lang.Object value,
JsonConfig jsonConfig,
java.lang.String name,
java.util.Map classMap,
java.lang.Class collectionType) |
|
private static java.util.List |
JSONObject.convertPropertyValueToList(java.lang.String key,
java.lang.Object value,
JsonConfig jsonConfig,
java.lang.String name,
java.util.Map classMap) |
|
private static JSONObject |
JSONObject.defaultBeanProcessing(java.lang.Object bean,
JsonConfig jsonConfig) |
|
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(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(java.lang.Object value,
JsonConfig jsonConfig) |
Append an object value.
|
JSONArray |
JSONArray.element(java.lang.String value,
JsonConfig jsonConfig) |
Append a String value.
|
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(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.
|
JSONObject |
JSONObject.element(java.lang.String key,
java.lang.Object value,
JsonConfig jsonConfig) |
Put a key/value pair in the JSONObject.
|
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.
|
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.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.
|
protected static void |
AbstractJSON.fireArrayEndEvent(JsonConfig jsonConfig) |
Fires an end of array event.
|
protected static void |
AbstractJSON.fireArrayStartEvent(JsonConfig jsonConfig) |
Fires a start of array event.
|
protected static void |
AbstractJSON.fireElementAddedEvent(int index,
java.lang.Object element,
JsonConfig jsonConfig) |
Fires an element added event.
|
protected static void |
AbstractJSON.fireErrorEvent(JSONException jsone,
JsonConfig jsonConfig) |
Fires an error event.
|
protected static void |
AbstractJSON.fireObjectEndEvent(JsonConfig jsonConfig) |
Fires an end of object event.
|
protected static void |
AbstractJSON.fireObjectStartEvent(JsonConfig jsonConfig) |
Fires a start of object event.
|
protected static void |
AbstractJSON.firePropertySetEvent(java.lang.String key,
java.lang.Object value,
boolean accumulated,
JsonConfig jsonConfig) |
Fires a property set event.
|
protected static void |
AbstractJSON.fireWarnEvent(java.lang.String warning,
JsonConfig jsonConfig) |
Fires a warning event.
|
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.
|
private static JSONObject.Property |
JSONObject.getProperty(java.lang.Class beanClass,
java.lang.Object bean,
java.lang.String key,
JsonConfig jsonConfig) |
|
private static boolean |
JSONObject.isTransient(java.lang.reflect.AnnotatedElement element,
JsonConfig jsonConfig) |
|
private static boolean |
JSONObject.isTransientField(java.lang.reflect.Field field,
JsonConfig jsonConfig) |
|
private static boolean |
JSONObject.isTransientField(java.lang.String name,
java.lang.Class beanClass,
JsonConfig jsonConfig) |
|
JSONArray |
JSONObject.names(JsonConfig jsonConfig) |
Produce a JSONArray containing the names of the elements of this
JSONObject.
|
private java.lang.Object |
JSONArray.processValue(java.lang.Object value,
JsonConfig jsonConfig) |
|
private java.lang.Object |
JSONObject.processValue(java.lang.Object value,
JsonConfig jsonConfig) |
|
private java.lang.Object |
JSONObject.processValue(java.lang.String key,
java.lang.Object value,
JsonConfig jsonConfig) |
|
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) |
|
void |
JSONObject.FieldProperty.set(java.lang.Object bean,
java.lang.Object value,
JsonConfig jsonConfig) |
|
void |
JSONObject.MethodProperty.set(java.lang.Object bean,
java.lang.Object value,
JsonConfig jsonConfig) |
|
void |
JSONObject.Property.set(java.lang.Object bean,
java.lang.Object value,
JsonConfig jsonConfig) |
|
void |
JSONObject.PropertyOnMap.set(java.lang.Object bean,
java.lang.Object value,
JsonConfig jsonConfig) |
|
void |
JSONObject.PropertySetterStrategyDecorator.set(java.lang.Object bean,
java.lang.Object value,
JsonConfig jsonConfig) |
|
private JSONObject |
JSONObject.setInternal(java.lang.String key,
java.lang.Object value,
JsonConfig jsonConfig) |
Put a key/value pair in the JSONObject.
|
private static void |
JSONObject.setProperty(java.lang.Object bean,
java.lang.String key,
java.lang.Object value,
JsonConfig jsonConfig) |
Sets a property on the target bean.
Bean may be a Map or a POJO.
|
private static void |
JSONObject.setValue(JSONObject jsonObject,
java.lang.String key,
java.lang.Object value,
java.lang.Class type,
JsonConfig jsonConfig,
boolean bypass) |
|
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 |
JSONArray.toArray(JSONArray jsonArray,
JsonConfig jsonConfig) |
Creates a java array from a JSONArray.
|
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 |
JSONObject.toBean(JSONObject jsonObject,
JsonConfig jsonConfig) |
Creates a bean from a JSONObject, with the specific configuration.
|
static java.util.Collection |
JSONArray.toCollection(JSONArray jsonArray,
JsonConfig jsonConfig) |
Returns a List or a Set taking generics into account.
Contributed by [Matt Small @ WaveMaker].
|
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.
Accepts JSON formatted strings, Maps, arrays, Collections, DynaBeans and
JavaBeans.
|
private static JSON |
JSONSerializer.toJSON(java.lang.String string,
JsonConfig jsonConfig) |
Creates a JSONObject, JSONArray or a JSONNull from a JSONString.
|
private static JSON |
JSONSerializer.toJSON(JSONString string,
JsonConfig jsonConfig) |
Creates a JSONObject, JSONArray or a JSONNull from a JSONString.
|
static java.util.List |
JSONArray.toList(JSONArray jsonArray,
java.lang.Object root,
JsonConfig jsonConfig) |
Creates a List from a JSONArray.
|
static java.util.List |
JSONArray.toList(JSONArray jsonArray,
JsonConfig jsonConfig) |
Deprecated.
|