Uses of Class
org.kordamp.json.JsonConfig
Packages that use JsonConfig
Package
Description
The core of the library
Support for custom serialization
Miscelaneous utilities
-
Uses of JsonConfig in org.kordamp.json
Methods in org.kordamp.json that return JsonConfigMethods in org.kordamp.json with parameters of type JsonConfigModifier and TypeMethodDescriptionprivate JSONObjectJSONObject._accumulate(String key, Object value, JsonConfig jsonConfig) private JSONArrayJSONArray._addValue(Object value, JsonConfig jsonConfig) Append an object value.protected ObjectAbstractJSON._processValue(Object value, JsonConfig jsonConfig) protected ObjectJSONArray._processValue(Object value, JsonConfig jsonConfig) protected ObjectJSONObject._processValue(Object value, JsonConfig jsonConfig) private JSONObjectJSONObject._setInternal(String key, Object value, JsonConfig jsonConfig) Put a key/value pair in the JSONObject.JSONObject.accumulate(String key, Object value, JsonConfig jsonConfig) Accumulate values under a key.voidJSONObject.accumulateAll(Map map, JsonConfig jsonConfig) voidJSONArray.add(int index, Object value, JsonConfig jsonConfig) booleanJSONArray.add(Object value, JsonConfig jsonConfig) booleanJSONArray.addAll(int index, Collection collection, JsonConfig jsonConfig) booleanJSONArray.addAll(Collection collection, JsonConfig jsonConfig) private JSONArrayJSONArray.addValue(Object value, JsonConfig jsonConfig) Append an object value.booleanJSONArray.contains(Object o, JsonConfig jsonConfig) booleanJSONArray.containsAll(Collection collection, JsonConfig jsonConfig) booleanJSONObject.containsValue(Object value, JsonConfig jsonConfig) static ObjectJSONObject.Impl.convertPropertyValueToArray(String key, Object value, Class targetType, JsonConfig jsonConfig, Map classMap) static CollectionJSONObject.Impl.convertPropertyValueToCollection(String key, Object value, JsonConfig jsonConfig, String name, Map classMap, Class collectionType) static ListJSONObject.Impl.convertPropertyValueToList(String key, Object value, JsonConfig jsonConfig, String name, Map classMap) static JSONObjectJSONObject.Impl.defaultBeanProcessing(Object bean, JsonConfig jsonConfig) JSONArray.element(int index, Object value, JsonConfig jsonConfig) Put or replace an object value in the JSONArray.JSONArray.element(int index, String value, JsonConfig jsonConfig) Put or replace a String value in the JSONArray.JSONArray.element(int index, Collection value, JsonConfig jsonConfig) Put a value in the JSONArray, where the value will be a JSONArray which is produced from a Collection.JSONArray.element(int index, Map value, JsonConfig jsonConfig) Put a value in the JSONArray, where the value will be a JSONObject which is produced from a Map.JSONArray.element(Object value, JsonConfig jsonConfig) Append an object value.JSONArray.element(String value, JsonConfig jsonConfig) Append a String value.JSONArray.element(Collection value, JsonConfig jsonConfig) Append a value in the JSONArray, where the value will be a JSONArray which is produced from a Collection.JSONArray.element(Map value, JsonConfig jsonConfig) Put a value in the JSONArray, where the value will be a JSONObject which is produced from a Map.JSONObject.element(String key, Object value, JsonConfig jsonConfig) Put a key/value pair in the JSONObject.JSONObject.element(String key, 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.element(String key, 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.elementOpt(String key, 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 voidAbstractJSON.fireArrayEndEvent(JsonConfig jsonConfig) Fires an end of array event.protected static voidAbstractJSON.fireArrayStartEvent(JsonConfig jsonConfig) Fires a start of array event.protected static voidAbstractJSON.fireElementAddedEvent(int index, Object element, JsonConfig jsonConfig) Fires an element added event.protected static voidAbstractJSON.fireErrorEvent(JSONException jsone, JsonConfig jsonConfig) Fires an error event.protected static voidAbstractJSON.fireObjectEndEvent(JsonConfig jsonConfig) Fires an end of object event.protected static voidAbstractJSON.fireObjectStartEvent(JsonConfig jsonConfig) Fires a start of object event.protected static voidAbstractJSON.firePropertySetEvent(String key, Object value, boolean accumulated, JsonConfig jsonConfig) Fires a property set event.protected static voidAbstractJSON.fireWarnEvent(String warning, JsonConfig jsonConfig) Fires a warning event.static JSONArrayJSONArray.Impl.fromArray(boolean[] array, JsonConfig jsonConfig) Construct a JSONArray from an boolean[].static JSONArrayJSONArray.Impl.fromArray(byte[] array, JsonConfig jsonConfig) Construct a JSONArray from an byte[].static JSONArrayJSONArray.Impl.fromArray(char[] array, JsonConfig jsonConfig) Construct a JSONArray from an char[].static JSONArrayJSONArray.Impl.fromArray(double[] array, JsonConfig jsonConfig) Construct a JSONArray from an double[].static JSONArrayJSONArray.Impl.fromArray(float[] array, JsonConfig jsonConfig) Construct a JSONArray from an float[].static JSONArrayJSONArray.Impl.fromArray(int[] array, JsonConfig jsonConfig) Construct a JSONArray from an int[].static JSONArrayJSONArray.Impl.fromArray(long[] array, JsonConfig jsonConfig) Construct a JSONArray from an long[].static JSONArrayJSONArray.Impl.fromArray(short[] array, JsonConfig jsonConfig) Construct a JSONArray from an short[].static JSONArrayJSONArray.Impl.fromArray(Enum e, JsonConfig jsonConfig) Construct a JSONArray from an Enum value.static JSONArrayJSONArray.Impl.fromArray(Object[] array, JsonConfig jsonConfig) static JSONObjectJSONObject.Impl.fromBean(Object bean, JsonConfig jsonConfig) Creates a JSONObject from a POJO.
Supports nested maps, POJOs, and arrays/collections.static JSONArrayJSONArray.Impl.fromCollection(Collection collection, JsonConfig jsonConfig) static JSONObjectJSONObject.Impl.fromDynaBean(org.apache.commons.beanutils.DynaBean bean, JsonConfig jsonConfig) static JSONArrayJSONArray.Impl.fromJSONArray(JSONArray array, JsonConfig jsonConfig) static JSONObjectJSONObject.Impl.fromJSONObject(JSONObject object, JsonConfig jsonConfig) static JSONArrayJSONArray.Impl.fromJSONString(JSONString string, JsonConfig jsonConfig) static JSONObjectJSONObject.Impl.fromJSONString(JSONString string, JsonConfig jsonConfig) static JSONArrayJSONArray.Impl.fromJSONTokener(JSONTokener tokener, JsonConfig jsonConfig) static JSONObjectJSONObject.Impl.fromJSONTokener(JSONTokener tokener, JsonConfig jsonConfig) static JSONObjectJSONObject.Impl.fromMap(Map map, JsonConfig jsonConfig) static JSONArrayJSONArray.fromObject(Object object, JsonConfig jsonConfig) Creates a JSONArray.
Inspects the object type to call the correct JSONArray factory method.static JSONObjectJSONObject.fromObject(Object object, JsonConfig jsonConfig) Creates a JSONObject.
Inspects the object type to call the correct JSONObject factory method.static JSONArrayJSONArray.Impl.fromString(String string, JsonConfig jsonConfig) static JSONObjectJSONObject.Impl.fromString(String str, JsonConfig jsonConfig) static JSONObject.PropertyJSONObject.Impl.getProperty(Class beanClass, Object bean, String key, JsonConfig jsonConfig) static booleanJSONObject.Impl.isTransient(AnnotatedElement element, JsonConfig jsonConfig) static booleanJSONObject.Impl.isTransientField(Field field, JsonConfig jsonConfig) static booleanJSONObject.Impl.isTransientField(String name, Class beanClass, JsonConfig jsonConfig) JSONObject.names(JsonConfig jsonConfig) Produce a JSONArray containing the names of the elements of this JSONObject.private ObjectJSONArray.processValue(Object value, JsonConfig jsonConfig) private ObjectJSONObject.processValue(Object value, JsonConfig jsonConfig) private ObjectJSONObject.processValue(String key, Object value, JsonConfig jsonConfig) voidJSONObject.putAll(Map map, JsonConfig jsonConfig) booleanJSONArray.removeAll(Collection collection, JsonConfig jsonConfig) booleanJSONArray.retainAll(Collection collection, JsonConfig jsonConfig) JSONArray.set(int index, Object value, JsonConfig jsonConfig) voidJSONObject.FieldProperty.set(Object bean, Object value, JsonConfig jsonConfig) voidJSONObject.MethodProperty.set(Object bean, Object value, JsonConfig jsonConfig) voidJSONObject.Property.set(Object bean, Object value, JsonConfig jsonConfig) voidJSONObject.PropertyOnMap.set(Object bean, Object value, JsonConfig jsonConfig) voidJSONObject.PropertySetterStrategyDecorator.set(Object bean, Object value, JsonConfig jsonConfig) private JSONObjectJSONObject.setInternal(String key, Object value, JsonConfig jsonConfig) Put a key/value pair in the JSONObject.static voidJSONObject.Impl.setProperty(Object bean, String key, Object value, JsonConfig jsonConfig) Sets a property on the target bean.
Bean may be a Map or a POJO.static voidJSONObject.Impl.setValue(JSONObject jsonObject, String key, Object value, Class type, JsonConfig jsonConfig, boolean bypass) static ObjectJSONArray.toArray(JSONArray jsonArray, Object root, JsonConfig jsonConfig) Creates a java array from a JSONArray.static ObjectJSONArray.toArray(JSONArray jsonArray, JsonConfig jsonConfig) Creates a java array from a JSONArray.static ObjectJSONObject.toBean(JSONObject jsonObject, Object bean, JsonConfig jsonConfig) Creates a bean from a JSONObject, with the specific configuration.static ObjectJSONObject.toBean(JSONObject jsonObject, JsonConfig jsonConfig) Creates a bean from a JSONObject, with the specific configuration.static CollectionJSONArray.toCollection(JSONArray jsonArray, JsonConfig jsonConfig) Returns a List or a Set taking generics into account.
Contributed by [Matt Small @ WaveMaker].static ObjectJSONSerializer.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 JSONJSONSerializer.toJSON(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 JSONJSONSerializer.toJSON(String string, JsonConfig jsonConfig) Creates a JSONObject, JSONArray or a JSONNull from a JSONString.private static JSONJSONSerializer.toJSON(JSONString string, JsonConfig jsonConfig) Creates a JSONObject, JSONArray or a JSONNull from a JSONString.static ListJSONArray.toList(JSONArray jsonArray, Object root, JsonConfig jsonConfig) Creates a List from a JSONArray.static ListJSONArray.toList(JSONArray jsonArray, JsonConfig jsonConfig) Deprecated.replaced by toCollection -
Uses of JsonConfig in org.kordamp.json.processors
Methods in org.kordamp.json.processors with parameters of type JsonConfigModifier and TypeMethodDescriptionprivate ObjectJsDateJsonValueProcessor.process(Object value, JsonConfig jsonConfig) JsDateJsonValueProcessor.processArrayValue(Object value, JsonConfig jsonConfig) JsonValueProcessor.processArrayValue(Object value, JsonConfig jsonConfig) Processes the value an returns a suitable JSON value.JsDateJsonBeanProcessor.processBean(Object bean, JsonConfig jsonConfig) Processes the input bean into a compatible JsDate.JsonBeanProcessor.processBean(Object bean, JsonConfig jsonConfig) Processes the bean an returns a suitable JSONObject representation.JsDateJsonValueProcessor.processObjectValue(String key, Object value, JsonConfig jsonConfig) JsonValueProcessor.processObjectValue(String key, Object value, JsonConfig jsonConfig) Processes the value an returns a suitable JSON value. -
Uses of JsonConfig in org.kordamp.json.util
Methods in org.kordamp.json.util with parameters of type JsonConfigModifier and TypeMethodDescriptionprivate voidPropertySetStrategy.DefaultPropertySetStrategy._setProperty(Object bean, String key, Object value, JsonConfig jsonConfig) static StringJSONUtils.convertToJavaIdentifier(String key, JsonConfig jsonConfig) Transforms the string into a valid Java Identifier.
The default strategy is JavaIdentifierTransformer.NOOPstatic booleanJSONUtils.isJsonKeyword(String input, JsonConfig jsonConfig) static org.apache.commons.beanutils.DynaBeanJSONUtils.newDynaBean(JSONObject jsonObject, JsonConfig jsonConfig) Creates a new MorphDynaBean from a JSONObject.JSONTokener.nextValue(JsonConfig jsonConfig) Get the next value.voidPropertySetStrategy.DefaultPropertySetStrategy.setProperty(Object bean, String key, Object value, JsonConfig jsonConfig) voidPropertySetStrategy.setProperty(Object bean, String key, Object value, JsonConfig jsonConfig)