A B C D E F G H I J K L M N O P Q R S T U V W X _
All Classes All Packages
All Classes All Packages
All Classes All Packages
A
- accumulate(String, boolean) - Method in class net.sf.json.JSONObject
-
Accumulate values under a key.
- accumulate(String, double) - Method in class net.sf.json.JSONObject
-
Accumulate values under a key.
- accumulate(String, int) - Method in class net.sf.json.JSONObject
-
Accumulate values under a key.
- accumulate(String, long) - Method in class net.sf.json.JSONObject
-
Accumulate values under a key.
- accumulate(String, Object) - Method in class net.sf.json.JSONObject
-
Accumulate values under a key.
- accumulate(String, Object, JsonConfig) - Method in class net.sf.json.JSONObject
-
Accumulate values under a key.
- accumulateAll(Map) - Method in class net.sf.json.JSONObject
- accumulateAll(Map, JsonConfig) - Method in class net.sf.json.JSONObject
- add(int, Object) - Method in class net.sf.json.JSONArray
- add(int, Object, JsonConfig) - Method in class net.sf.json.JSONArray
- add(Object) - Method in class net.sf.json.JSONArray
- add(Object, JsonConfig) - Method in class net.sf.json.JSONArray
- addAll(int, Collection) - Method in class net.sf.json.JSONArray
- addAll(int, Collection, JsonConfig) - Method in class net.sf.json.JSONArray
- addAll(Collection) - Method in class net.sf.json.JSONArray
- addAll(Collection, JsonConfig) - Method in class net.sf.json.JSONArray
- addIgnoreFieldAnnotation(Class) - Method in class net.sf.json.JsonConfig
-
Removes an annotation that marks a field to be skipped when building.
[Java -> JSON] - addIgnoreFieldAnnotation(String) - Method in class net.sf.json.JsonConfig
-
Adds an annotation that marks a field to be skipped when building.
[Java -> JSON] - addJsonEventListener(JsonEventListener) - Method in class net.sf.json.JsonConfig
-
Registers a listener for JSON events.
The events will be triggered only when using the static builders and if event triggering is enabled.
[Java -> JSON] - addNamespace(String, String) - Method in class net.sf.json.xml.XMLSerializer
-
Adds a namespace declaration to the root element.
- addNamespace(String, String, String) - Method in class net.sf.json.xml.XMLSerializer
-
Adds a namespace declaration to an element.
If the elementName param is null or blank, the namespace declaration will be added to the root element. - addPropertyFilter(Object, PropertyFilter) - Method in class net.sf.json.filters.MappingPropertyFilter
- addPropertyFilter(PropertyFilter) - Method in class net.sf.json.filters.CompositePropertyFilter
- addString(String) - Method in class net.sf.json.JSONArray
-
Adds a String without performing any conversion on it.
- AndPropertyFilter - Class in net.sf.json.filters
- AndPropertyFilter(PropertyFilter, PropertyFilter) - Constructor for class net.sf.json.filters.AndPropertyFilter
- apply(Object, String, Object) - Method in class net.sf.json.filters.AndPropertyFilter
- apply(Object, String, Object) - Method in class net.sf.json.filters.CompositePropertyFilter
- apply(Object, String, Object) - Method in class net.sf.json.filters.FalsePropertyFilter
- apply(Object, String, Object) - Method in class net.sf.json.filters.MappingPropertyFilter
- apply(Object, String, Object) - Method in class net.sf.json.filters.NotPropertyFilter
- apply(Object, String, Object) - Method in class net.sf.json.filters.OrPropertyFilter
- apply(Object, String, Object) - Method in class net.sf.json.filters.TruePropertyFilter
- apply(Object, String, Object) - Method in interface net.sf.json.util.PropertyFilter
- array() - Method in class net.sf.json.util.JSONBuilder
-
Begin appending a new array.
- ARRAY - Static variable in interface net.sf.json.xml.JSONTypes
- assertEquals(String, String, JSONArray) - Static method in class net.sf.json.test.JSONAssert
-
Asserts that two JSONArrays are equal.
- assertEquals(String, String, JSONFunction) - Static method in class net.sf.json.test.JSONAssert
-
Asserts that two JSONFunctions are equal.
- assertEquals(String, String, JSONNull) - Static method in class net.sf.json.test.JSONAssert
-
Asserts that two JSONNulls are equal.
- assertEquals(String, String, JSONObject) - Static method in class net.sf.json.test.JSONAssert
-
Asserts that two JSONObjects are equal.
- assertEquals(String, JSONArray) - Static method in class net.sf.json.test.JSONAssert
-
Asserts that two JSONArrays are equal.
- assertEquals(String, JSONArray, String) - Static method in class net.sf.json.test.JSONAssert
-
Asserts that two JSONArrays are equal.
- assertEquals(String, JSONArray, JSONArray) - Static method in class net.sf.json.test.JSONAssert
-
Asserts that two JSONArrays are equal.
- assertEquals(String, JSONFunction) - Static method in class net.sf.json.test.JSONAssert
-
Asserts that two JSONFunctions are equal.
- assertEquals(String, JSONFunction, String) - Static method in class net.sf.json.test.JSONAssert
-
Asserts that two JSONFunctions are equal.
- assertEquals(String, JSONNull) - Static method in class net.sf.json.test.JSONAssert
-
Asserts that two JSONNulls are equal.
- assertEquals(String, JSONNull, String) - Static method in class net.sf.json.test.JSONAssert
-
Asserts that two JSONNulls are equal.
- assertEquals(String, JSONObject) - Static method in class net.sf.json.test.JSONAssert
-
Asserts that two JSONObjects are equal.
- assertEquals(String, JSONObject, String) - Static method in class net.sf.json.test.JSONAssert
-
Asserts that two JSONObjects are equal.
- assertEquals(String, JSONObject, JSONObject) - Static method in class net.sf.json.test.JSONAssert
-
Asserts that two JSONObjects are equal.
- assertEquals(String, JSON, JSON) - Static method in class net.sf.json.test.JSONAssert
-
Asserts that two JSON values are equal.
- assertEquals(JSONArray, String) - Static method in class net.sf.json.test.JSONAssert
-
Asserts that two JSONArrays are equal.
- assertEquals(JSONArray, JSONArray) - Static method in class net.sf.json.test.JSONAssert
-
Asserts that two JSONArrays are equal.
- assertEquals(JSONFunction, String) - Static method in class net.sf.json.test.JSONAssert
-
Asserts that two JSONFunctions are equal.
- assertEquals(JSONNull, String) - Static method in class net.sf.json.test.JSONAssert
-
Asserts that two JSONNulls are equal.
- assertEquals(JSONObject, String) - Static method in class net.sf.json.test.JSONAssert
-
Asserts that two JSONObjects are equal.
- assertEquals(JSONObject, JSONObject) - Static method in class net.sf.json.test.JSONAssert
-
Asserts that two JSONObjects are equal.
- assertEquals(JSON, JSON) - Static method in class net.sf.json.test.JSONAssert
-
Asserts that two JSON values are equal.
- assertJsonEquals(String, String) - Static method in class net.sf.json.test.JSONAssert
-
Asserts that two JSON strings are equal.
- assertJsonEquals(String, String, String) - Static method in class net.sf.json.test.JSONAssert
-
Asserts that two JSON strings are equal.
- assertNotNull(String, JSON) - Static method in class net.sf.json.test.JSONAssert
-
Asserts that a JSON value is not null.
Fails if: JSONNull.getInstance().equals( json ) ((JSONObject) json).isNullObject() - assertNotNull(JSON) - Static method in class net.sf.json.test.JSONAssert
-
Asserts that a JSON value is not null.
Fails if: JSONNull.getInstance().equals( json ) ((JSONObject) json).isNullObject() - assertNull(String, JSON) - Static method in class net.sf.json.test.JSONAssert
-
Asserts that a JSON value is null.
Fails if: !JSONNull.getInstance().equals( json ) !((JSONObject) json).isNullObject() - assertNull(JSON) - Static method in class net.sf.json.test.JSONAssert
-
Asserts that a JSON value is null.
Fails if: !JSONNull.getInstance().equals( json ) !((JSONObject) json).isNullObject()
B
- back() - Method in class net.sf.json.util.JSONTokener
-
Back up one character.
- BOOLEAN - Static variable in interface net.sf.json.xml.JSONTypes
C
- CAMEL_CASE - Static variable in class net.sf.json.util.JavaIdentifierTransformer
-
CamelCase transformer 'camel case' => 'camelCase'
- clear() - Method in class net.sf.json.JSONArray
- clear() - Method in class net.sf.json.JSONObject
- clearJavaPropertyNameProcessors() - Method in class net.sf.json.JsonConfig
-
Removes all registered PropertyNameProcessors.
[JSON -> Java] - clearJsonBeanProcessors() - Method in class net.sf.json.JsonConfig
-
Removes all registered JsonBeanProcessors.
[Java -> JSON] - clearJsonEventListeners() - Method in class net.sf.json.JsonConfig
-
Removes all registered listener for JSON Events.
[Java -> JSON] - clearJsonPropertyNameProcessors() - Method in class net.sf.json.JsonConfig
-
Removes all registered PropertyNameProcessors.
[Java -> JSON] - clearJsonValueProcessors() - Method in class net.sf.json.JsonConfig
-
Removes all registered JsonValueProcessors.
[Java -> JSON] - clearNamespaces() - Method in class net.sf.json.xml.XMLSerializer
-
Removes all namespaces declarations (from root an elements).
- clearNamespaces(String) - Method in class net.sf.json.xml.XMLSerializer
-
Removes all namespace declarations from an element.
If the elementName param is null or blank, the declarations will be removed from the root element. - clearPropertyExclusions() - Method in class net.sf.json.JsonConfig
-
Removes all property exclusions registered per class.
[Java -> JSON] - clearPropertyNameProcessors() - Method in class net.sf.json.JsonConfig
-
Deprecated.use clearJavaPropertyNameProcessors() instead
- COMMENTS - Static variable in class net.sf.json.util.WebHijackPreventionStrategy
-
Wraps the string with /* *\/
- compareTo(Object) - Method in class net.sf.json.JSONArray
- compareTo(Object) - Method in class net.sf.json.JSONObject
- CompositePropertyFilter - Class in net.sf.json.filters
- CompositePropertyFilter() - Constructor for class net.sf.json.filters.CompositePropertyFilter
- CompositePropertyFilter(List) - Constructor for class net.sf.json.filters.CompositePropertyFilter
- contains(Object) - Method in class net.sf.json.JSONArray
- contains(Object, JsonConfig) - Method in class net.sf.json.JSONArray
- containsAll(Collection) - Method in class net.sf.json.JSONArray
- containsAll(Collection, JsonConfig) - Method in class net.sf.json.JSONArray
- containsKey(Object) - Method in class net.sf.json.JSONObject
- containsValue(Object) - Method in class net.sf.json.JSONObject
- containsValue(Object, JsonConfig) - Method in class net.sf.json.JSONObject
- convertToJavaIdentifier(String) - Static method in class net.sf.json.util.JSONUtils
-
Transforms the string into a valid Java Identifier.
The default strategy is JavaIdentifierTransformer.NOOP - convertToJavaIdentifier(String, JsonConfig) - Static method in class net.sf.json.util.JSONUtils
-
Transforms the string into a valid Java Identifier.
The default strategy is JavaIdentifierTransformer.NOOP - copy() - Method in class net.sf.json.JsonConfig
- CycleDetectionStrategy - Class in net.sf.json.util
-
Base class for cycle detection in a hierarchy.
The JSON spec forbides cycles in a hierarchy and most parsers will raise and error when a cycle is detected. - CycleDetectionStrategy() - Constructor for class net.sf.json.util.CycleDetectionStrategy
D
- DEFAULT - Static variable in class net.sf.json.processors.DefaultValueProcessorMatcher
-
Matches the target with equals()
- DEFAULT - Static variable in class net.sf.json.processors.JsonBeanProcessorMatcher
-
Matches the target with equals()
- DEFAULT - Static variable in class net.sf.json.processors.JsonValueProcessorMatcher
-
Matches the target with equals()
- DEFAULT - Static variable in class net.sf.json.processors.PropertyNameProcessorMatcher
-
Matches the target with equals()
- DEFAULT - Static variable in class net.sf.json.util.NewBeanInstanceStrategy
-
Calls Class.newInstance()
- DEFAULT - Static variable in class net.sf.json.util.PropertyExclusionClassMatcher
-
Matches the target with equals()
- DEFAULT - Static variable in class net.sf.json.util.PropertySetStrategy
- DEFAULT_DEFAULT_VALUE_PROCESSOR_MATCHER - Static variable in class net.sf.json.JsonConfig
- DEFAULT_JSON_BEAN_PROCESSOR_MATCHER - Static variable in class net.sf.json.JsonConfig
- DEFAULT_JSON_VALUE_PROCESSOR_MATCHER - Static variable in class net.sf.json.JsonConfig
- DEFAULT_NEW_BEAN_INSTANCE_STRATEGY - Static variable in class net.sf.json.JsonConfig
- DEFAULT_PROPERTY_EXCLUSION_CLASS_MATCHER - Static variable in class net.sf.json.JsonConfig
- DEFAULT_PROPERTY_NAME_PROCESSOR_MATCHER - Static variable in class net.sf.json.JsonConfig
- DefaultDefaultValueProcessor - Class in net.sf.json.processors
-
Base implementation for DefaultDefaultValueProcessor.
- DefaultDefaultValueProcessor() - Constructor for class net.sf.json.processors.DefaultDefaultValueProcessor
- DefaultValueProcessor - Interface in net.sf.json.processors
-
Defines the default value for a type when its value is null.
- DefaultValueProcessorMatcher - Class in net.sf.json.processors
-
Base class for finding a matching DefaultValueProcessor.
DEFAULT - matches the target class with equals(). - DefaultValueProcessorMatcher() - Constructor for class net.sf.json.processors.DefaultValueProcessorMatcher
- dehexchar(char) - Static method in class net.sf.json.util.JSONTokener
-
Get the hex value of a character (base16).
- disableEventTriggering() - Method in class net.sf.json.JsonConfig
-
Disables event triggering when building.
[Java -> JSON] - discard(int) - Method in class net.sf.json.JSONArray
-
Remove an element, if present.
- discard(Object) - Method in class net.sf.json.JSONArray
-
Remove an element, if present.
- discard(String) - Method in class net.sf.json.JSONObject
-
Remove a name and its value, if present.
- DOUBLE_QUOTE - Static variable in class net.sf.json.util.JSONUtils
-
Constant for char "
- doubleToString(double) - Static method in class net.sf.json.util.JSONUtils
-
Produce a string from a double.
E
- element(boolean) - Method in class net.sf.json.JSONArray
-
Append a boolean value.
- element(double) - Method in class net.sf.json.JSONArray
-
Append a double value.
- element(int) - Method in class net.sf.json.JSONArray
-
Append an int value.
- element(int, boolean) - Method in class net.sf.json.JSONArray
-
Put or replace a boolean value in the JSONArray.
- element(int, double) - Method in class net.sf.json.JSONArray
-
Put or replace a double value.
- element(int, int) - Method in class net.sf.json.JSONArray
-
Put or replace an int value.
- element(int, long) - Method in class net.sf.json.JSONArray
-
Put or replace a long value.
- element(int, Object) - Method in class net.sf.json.JSONArray
-
Put or replace an object value in the JSONArray.
- element(int, Object, JsonConfig) - Method in class net.sf.json.JSONArray
-
Put or replace an object value in the JSONArray.
- element(int, String) - Method in class net.sf.json.JSONArray
-
Put or replace a String value in the JSONArray.
- element(int, String, JsonConfig) - Method in class net.sf.json.JSONArray
-
Put or replace a String value in the JSONArray.
- element(int, Collection) - Method in class net.sf.json.JSONArray
-
Put a value in the JSONArray, where the value will be a JSONArray which is produced from a Collection.
- element(int, Collection, JsonConfig) - Method in class net.sf.json.JSONArray
-
Put a value in the JSONArray, where the value will be a JSONArray which is produced from a Collection.
- element(int, Map) - Method in class net.sf.json.JSONArray
-
Put a value in the JSONArray, where the value will be a JSONObject which is produced from a Map.
- element(int, Map, JsonConfig) - Method in class net.sf.json.JSONArray
-
Put a value in the JSONArray, where the value will be a JSONObject which is produced from a Map.
- element(long) - Method in class net.sf.json.JSONArray
-
Append an long value.
- element(Object) - Method in class net.sf.json.JSONArray
-
Append an object value.
- element(Object, JsonConfig) - Method in class net.sf.json.JSONArray
-
Append an object value.
- element(String) - Method in class net.sf.json.JSONArray
-
Append a String value.
- element(String, boolean) - Method in class net.sf.json.JSONObject
-
Put a key/boolean pair in the JSONObject.
- element(String, double) - Method in class net.sf.json.JSONObject
-
Put a key/double pair in the JSONObject.
- element(String, int) - Method in class net.sf.json.JSONObject
-
Put a key/int pair in the JSONObject.
- element(String, long) - Method in class net.sf.json.JSONObject
-
Put a key/long pair in the JSONObject.
- element(String, Object) - Method in class net.sf.json.JSONObject
-
Put a key/value pair in the JSONObject.
- element(String, Object, JsonConfig) - Method in class net.sf.json.JSONObject
-
Put a key/value pair in the JSONObject.
- element(String, Collection) - Method in class net.sf.json.JSONObject
-
Put a key/value pair in the JSONObject, where the value will be a JSONArray which is produced from a Collection.
- element(String, Collection, JsonConfig) - Method in class net.sf.json.JSONObject
-
Put a key/value pair in the JSONObject, where the value will be a JSONArray which is produced from a Collection.
- element(String, Map) - Method in class net.sf.json.JSONObject
-
Put a key/value pair in the JSONObject, where the value will be a JSONObject which is produced from a Map.
- element(String, Map, JsonConfig) - Method in class net.sf.json.JSONObject
-
Put a key/value pair in the JSONObject, where the value will be a JSONObject which is produced from a Map.
- element(String, JsonConfig) - Method in class net.sf.json.JSONArray
-
Append a String value.
- element(Collection) - Method in class net.sf.json.JSONArray
-
Append a value in the JSONArray, where the value will be a JSONArray which is produced from a Collection.
- element(Collection, JsonConfig) - Method in class net.sf.json.JSONArray
-
Append a value in the JSONArray, where the value will be a JSONArray which is produced from a Collection.
- element(Map) - Method in class net.sf.json.JSONArray
-
Put a value in the JSONArray, where the value will be a JSONObject which is produced from a Map.
- element(Map, JsonConfig) - Method in class net.sf.json.JSONArray
-
Put a value in the JSONArray, where the value will be a JSONObject which is produced from a Map.
- element(JSONNull) - Method in class net.sf.json.JSONArray
-
Append an JSON value.
- element(JSONObject) - Method in class net.sf.json.JSONArray
-
Append an JSON value.
- elementOpt(String, Object) - Method in class net.sf.json.JSONObject
-
Put a key/value pair in the JSONObject, but only if the key and the value are both non-null.
- elementOpt(String, Object, JsonConfig) - Method in class net.sf.json.JSONObject
-
Put a key/value pair in the JSONObject, but only if the key and the value are both non-null.
- enableEventTriggering() - Method in class net.sf.json.JsonConfig
-
Enables event triggering when building.
[Java -> JSON] - endArray() - Method in class net.sf.json.util.JSONBuilder
-
End an array.
- endObject() - Method in class net.sf.json.util.JSONBuilder
-
End an object.
- entrySet() - Method in class net.sf.json.JSONObject
- EnumMorpher - Class in net.sf.json.util
- EnumMorpher(Class) - Constructor for class net.sf.json.util.EnumMorpher
- equals(Object) - Method in class net.sf.json.JSONArray
- equals(Object) - Method in class net.sf.json.JSONFunction
- equals(Object) - Method in class net.sf.json.JSONNull
-
A Null object is equal to the null value and to itself.
- equals(Object) - Method in class net.sf.json.JSONObject
F
- FalsePropertyFilter - Class in net.sf.json.filters
- FalsePropertyFilter() - Constructor for class net.sf.json.filters.FalsePropertyFilter
- findDefaultValueProcessor(Class) - Method in class net.sf.json.JsonConfig
-
Finds a DefaultValueProcessor registered to the target class.
Returns null if none is registered.
[Java -> JSON] - findJavaPropertyNameProcessor(Class) - Method in class net.sf.json.JsonConfig
-
Finds a PropertyNameProcessor registered to the target class.
Returns null if none is registered.
[JSON -> Java] - findJsonBeanProcessor(Class) - Method in class net.sf.json.JsonConfig
-
Finds a JsonBeanProcessor registered to the target class.
Returns null if none is registered.
[Java -> JSON] - findJsonPropertyNameProcessor(Class) - Method in class net.sf.json.JsonConfig
-
Finds a PropertyNameProcessor registered to the target class.
Returns null if none is registered.
[Java -> JSON] - findJsonValueProcessor(Class) - Method in class net.sf.json.JsonConfig
-
Finds a JsonValueProcessor registered to the target type.
Returns null if none is registered.
[Java -> JSON] - findJsonValueProcessor(Class, Class, String) - Method in class net.sf.json.JsonConfig
-
Finds a JsonValueProcessor.
It will search the registered JsonValueProcessors in the following order: beanClass, key beanClass, type key type Returns null if none is registered.
[Java -> JSON] - findJsonValueProcessor(Class, String) - Method in class net.sf.json.JsonConfig
-
Finds a JsonValueProcessor.
It will search the registered JsonValueProcessors in the following order: key type Returns null if none is registered.
[Java -> JSON] - findPropertyNameProcessor(Class) - Method in class net.sf.json.JsonConfig
-
Deprecated.use findJavaPropertyNameProcessor() instead
- FLOAT - Static variable in interface net.sf.json.xml.JSONTypes
- fromObject(Object) - Static method in class net.sf.json.JSONArray
-
Creates a JSONArray.
Inspects the object type to call the correct JSONArray factory method. - fromObject(Object) - Static method in class net.sf.json.JSONObject
-
Creates a JSONObject.
Inspects the object type to call the correct JSONObject factory method. - fromObject(Object, JsonConfig) - Static method in class net.sf.json.JSONArray
-
Creates a JSONArray.
Inspects the object type to call the correct JSONArray factory method. - fromObject(Object, JsonConfig) - Static method in class net.sf.json.JSONObject
-
Creates a JSONObject.
Inspects the object type to call the correct JSONObject factory method. - FUNCTION - Static variable in interface net.sf.json.xml.JSONTypes
G
- get(int) - Method in class net.sf.json.JSONArray
-
Get the object value associated with an index.
- get(Object) - Method in class net.sf.json.JSONObject
- get(String) - Method in class net.sf.json.JSONObject
-
Get the value object associated with a key.
- getArrayMode() - Method in class net.sf.json.JsonConfig
-
Returns the current array mode conversion.
[JSON -> Java] - getArrayName() - Method in class net.sf.json.xml.XMLSerializer
-
Returns the name used for JSONArray.
- getBoolean(int) - Method in class net.sf.json.JSONArray
-
Get the boolean value associated with an index.
- getBoolean(String) - Method in class net.sf.json.JSONObject
-
Get the boolean value associated with a key.
- getClassMap() - Method in class net.sf.json.JsonConfig
-
Returns the current attribute/class Map.
[JSON -> Java] - getCollectionType() - Method in class net.sf.json.JsonConfig
-
Returns the current collection type used for collection transformations.
[JSON -> Java] - getCollectionType(PropertyDescriptor, boolean) - Static method in class net.sf.json.JSONArray
-
Get the collection type from a getter or setter, or null if no type was found.
Contributed by [Matt Small @ WaveMaker]. - getCycleDetectionStrategy() - Method in class net.sf.json.JsonConfig
-
Returns the configured CycleDetectionStrategy.
Default value is CycleDetectionStrategy.STRICT
[Java -> JSON] - getDefaultValue(Class) - Method in class net.sf.json.processors.DefaultDefaultValueProcessor
- getDefaultValue(Class) - Method in interface net.sf.json.processors.DefaultValueProcessor
-
Returns an appropriate default value for a type.
- getDefaultValueProcessorMatcher() - Method in class net.sf.json.JsonConfig
-
Returns the configured DefaultValueProcessorMatcher.
Default value is DefaultValueProcessorMatcher.DEFAULT
[Java -> JSON] - getDimensions(JSONArray) - Static method in class net.sf.json.JSONArray
-
Returns the number of dimensions suited for a java array.
- getDouble(int) - Method in class net.sf.json.JSONArray
-
Get the double value associated with an index.
- getDouble(String) - Method in class net.sf.json.JSONObject
-
Get the double value associated with a key.
- getElementName() - Method in class net.sf.json.xml.XMLSerializer
-
Returns the name used for JSONArray elements.
- getEnclosedType() - Method in class net.sf.json.JsonConfig
-
Returns the current enclosed type for generic collection transformations.
[JSON -> Java] - getExcludes() - Method in class net.sf.json.JsonConfig
-
Returns the configured properties for exclusion.
- getExpandableProperties() - Method in class net.sf.json.xml.XMLSerializer
-
Returns a list of properties to be expanded from child to parent.
- getFunctionBody(String) - Static method in class net.sf.json.util.JSONUtils
-
Returns the body of a function literal.
- getFunctionParams(String) - Static method in class net.sf.json.util.JSONUtils
-
Returns the params of a function literal.
- getGroupIfMatches(String, int) - Method in class net.sf.json.regexp.JdkRegexpMatcher
- getGroupIfMatches(String, int) - Method in class net.sf.json.regexp.Perl5RegexpMatcher
- getGroupIfMatches(String, int) - Method in interface net.sf.json.regexp.RegexpMatcher
-
Returns the specified group if the string matches the Pattern.
The Pattern will be managed internally by the RegexpMatcher implementation. - getIgnoreFieldAnnotations() - Method in class net.sf.json.JsonConfig
-
Returns a List of all annotations that mark a field to be skipped when building.
[Java -> JSON] - getInnerComponentType(Class) - Static method in class net.sf.json.util.JSONUtils
-
Returns the inner-most component type of an Array.
- getInstance() - Static method in class net.sf.json.JSONNull
-
Returns the singleton instance of JSONNull
- getInt(int) - Method in class net.sf.json.JSONArray
-
Get the int value associated with an index.
- getInt(String) - Method in class net.sf.json.JSONObject
-
Get the int value associated with a key.
- getJavaIdentifierTransformer() - Method in class net.sf.json.JsonConfig
-
Returns the configured JavaIdentifierTransformer.
- getJavaPropertyFilter() - Method in class net.sf.json.JsonConfig
-
Returns the configured property filter when serializing to Java.
[JSON -> Java] - getJavaPropertyNameProcessorMatcher() - Method in class net.sf.json.JsonConfig
-
Returns the configured PropertyNameProcessorMatcher.
Default value is PropertyNameProcessorMatcher.DEFAULT
[JSON -> Java] - getJSONArray(int) - Method in class net.sf.json.JSONArray
-
Get the JSONArray associated with an index.
- getJSONArray(String) - Method in class net.sf.json.JSONObject
-
Get the JSONArray value associated with a key.
- getJsonBeanProcessorMatcher() - Method in class net.sf.json.JsonConfig
-
Returns the configured JsonBeanProcessorMatcher.
Default value is JsonBeanProcessorMatcher.DEFAULT
[JSON -> Java] - getJsonConfig() - Method in class net.sf.json.groovy.JsonGroovyBuilder
- getJsonEventListeners() - Method in class net.sf.json.JsonConfig
-
Returns a list of registered listeners for JSON events.
[JSON -> Java] - getJSONObject(int) - Method in class net.sf.json.JSONArray
-
Get the JSONObject associated with an index.
- getJSONObject(String) - Method in class net.sf.json.JSONObject
-
Get the JSONObject value associated with a key.
- getJsonPropertyFilter() - Method in class net.sf.json.JsonConfig
-
Returns the configured property filter when serializing to JSON.
[Java -> JSON] - getJsonPropertyNameProcessorMatcher() - Method in class net.sf.json.JsonConfig
-
Returns the configured PropertyNameProcessorMatcher.
Default value is PropertyNameProcessorMatcher.DEFAULT
[Java -> JSON] - getJsonValueProcessorMatcher() - Method in class net.sf.json.JsonConfig
-
Returns the configured JsonValueProcessorMatcher.
Default value is JsonValueProcessorMatcher.DEFAULT
[Java -> JSON] - getLong(int) - Method in class net.sf.json.JSONArray
-
Get the long value associated with an index.
- getLong(String) - Method in class net.sf.json.JSONObject
-
Get the long value associated with a key.
- getMatch(Class, Set) - Method in class net.sf.json.processors.DefaultValueProcessorMatcher
-
Returns the matching class calculated with the target class and the provided set.
- getMatch(Class, Set) - Method in class net.sf.json.processors.JsonBeanProcessorMatcher
-
Returns the matching class calculated with the target class and the provided set.
- getMatch(Class, Set) - Method in class net.sf.json.processors.JsonValueProcessorMatcher
-
Returns the matching class calculated with the target class and the provided set.
- getMatch(Class, Set) - Method in class net.sf.json.processors.PropertyNameProcessorMatcher
-
Returns the matching class calculated with the target class and the provided set.
- getMatch(Class, Set) - Method in class net.sf.json.util.PropertyExclusionClassMatcher
-
Returns the matching class calculated with the target class and the provided set.
- getMatcher(String) - Static method in class net.sf.json.regexp.RegexpUtils
-
Returns a RegexpMatcher that works in a specific environment.
When in a JVM 1.3.1 it will return a Perl5RegexpMatcher, if the JVM is younger (1.4+) it will return a JdkRegexpMatcher. - getMatcher(String, boolean) - Static method in class net.sf.json.regexp.RegexpUtils
-
Returns a RegexpMatcher that works in a specific environment.
When in a JVM 1.3.1 it will return a Perl5RegexpMatcher, if the JVM is younger (1.4+) it will return a JdkRegexpMatcher. - getMergedExcludes() - Method in class net.sf.json.JsonConfig
-
Returns a set of default excludes with user-defined excludes.
[Java -> JSON] - getMergedExcludes(Class) - Method in class net.sf.json.JsonConfig
-
Returns a set of default excludes with user-defined excludes.
Takes into account any additional excludes per matching class. - getMorpherRegistry() - Static method in class net.sf.json.util.JSONUtils
-
Returns the singleton MorpherRegistry.
- getNewBeanInstanceStrategy() - Method in class net.sf.json.JsonConfig
-
Returns the configured NewBeanInstanceStrategy.
Default value is NewBeanInstanceStrategy.DEFAULT
[JSON -> Java] - getObjectName() - Method in class net.sf.json.xml.XMLSerializer
-
Returns the name used for JSONArray.
- getParams() - Method in class net.sf.json.JSONFunction
-
Returns the parameters of this function.
- getProperties(JSONObject) - Static method in class net.sf.json.util.JSONUtils
-
Creates a Map with all the properties of the JSONObject.
- getProperty(String) - Method in class net.sf.json.groovy.JsonGroovyBuilder
- getPropertyExclusionClassMatcher() - Method in class net.sf.json.JsonConfig
-
Returns the configured PropertyExclusionClassMatcher.
Default value is PropertyExclusionClassMatcher.DEFAULT
[JSON -> Java] - getPropertyNameProcessorMatcher() - Method in class net.sf.json.JsonConfig
-
Deprecated.use getJavaPropertyNameProcessorMatcher() instead
- getPropertySetStrategy() - Method in class net.sf.json.JsonConfig
-
Returns the configured PropertySetStrategy.
Default value is PropertySetStrategy.DEFAULT
[JSON -> Java] - getRootClass() - Method in class net.sf.json.JsonConfig
-
Returns the current root Class.
[JSON -> Java] - getRootName() - Method in class net.sf.json.xml.XMLSerializer
-
Returns the name used for the root element.
- getString(int) - Method in class net.sf.json.JSONArray
-
Get the string associated with an index.
- getString(String) - Method in class net.sf.json.JSONObject
-
Get the string associated with a key.
- getText() - Method in class net.sf.json.JSONFunction
-
Reeturns the text of this function.
- getTypeClass(Object) - Static method in class net.sf.json.util.JSONUtils
-
Returns the JSON type.
Values are Object, String, Boolean, Number(subclasses) & JSONFunction. - getWebHijackPreventionStrategy() - Static method in class net.sf.json.util.WebUtils
-
Returns the configured WebHijackPreventionStrategy.
H
- handleRepeatedReferenceAsArray(Object) - Method in class net.sf.json.util.CycleDetectionStrategy
-
Handle a repeated reference
Must return a valid JSONArray or null. - handleRepeatedReferenceAsObject(Object) - Method in class net.sf.json.util.CycleDetectionStrategy
-
Handle a repeated reference
Must return a valid JSONObject or null. - has(String) - Method in class net.sf.json.JSONObject
-
Determine if the JSONObject contains a specific key.
- hashCode() - Method in class net.sf.json.JSONArray
- hashCode() - Method in class net.sf.json.JSONFunction
- hashCode() - Method in class net.sf.json.JSONNull
- hashCode() - Method in class net.sf.json.JSONObject
- hashCode(Object) - Static method in class net.sf.json.util.JSONUtils
-
Returns the hashcode of value.
If null it will return JSONNull.getInstance().hashCode().
If value is JSON, JSONFunction or String, value.hashCode is returned, otherwise the value is transformed to a String an its hashcode is returned. - hasQuotes(String) - Static method in class net.sf.json.util.JSONUtils
-
Returns true if the input has single-quotes or double-quotes at both sides.
I
- IGNORE_PROPERTY_ARR - Static variable in class net.sf.json.util.CycleDetectionStrategy
- IGNORE_PROPERTY_OBJ - Static variable in class net.sf.json.util.CycleDetectionStrategy
- indexOf(Object) - Method in class net.sf.json.JSONArray
- INFINITE_LOOP - Static variable in class net.sf.json.util.WebHijackPreventionStrategy
-
Prepends "while(1);"
- INTEGER - Static variable in interface net.sf.json.xml.JSONTypes
- invokeMethod(String, Object) - Method in class net.sf.json.groovy.JsonGroovyBuilder
- isAllowNonStringKeys() - Method in class net.sf.json.JsonConfig
-
Returns true if non-String keys are allowed on JSONObject.
Default value is false
[Java -> JSON] - isArray() - Method in interface net.sf.json.JSON
-
Returns true if this object is a JSONArray, false otherwise.
- isArray() - Method in class net.sf.json.JSONArray
- isArray() - Method in class net.sf.json.JSONNull
- isArray() - Method in class net.sf.json.JSONObject
- isArray(Class) - Static method in class net.sf.json.util.JSONUtils
-
Tests if a Class represents an array or Collection.
- isArray(Object) - Static method in class net.sf.json.util.JSONUtils
-
Tests if obj is an array or Collection.
- isBoolean(Class) - Static method in class net.sf.json.util.JSONUtils
-
Tests if Class represents a Boolean or primitive boolean
- isBoolean(Object) - Static method in class net.sf.json.util.JSONUtils
-
Tests if obj is a Boolean or primitive boolean
- isDouble(Class) - Static method in class net.sf.json.util.JSONUtils
-
Tests if Class represents a primitive double or wrapper.
- isEmpty() - Method in interface net.sf.json.JSON
-
Returns true if this object has no elements or keys.
- isEmpty() - Method in class net.sf.json.JSONArray
- isEmpty() - Method in class net.sf.json.JSONNull
- isEmpty() - Method in class net.sf.json.JSONObject
- isEventTriggeringEnabled() - Method in class net.sf.json.JsonConfig
-
Returns true if event triggering is enabled during building.
Default value is false
[Java -> JSON] - isExpandElements() - Method in class net.sf.json.JSONArray
- isForceTopLevelObject() - Method in class net.sf.json.xml.XMLSerializer
- isFunction(Object) - Static method in class net.sf.json.util.JSONUtils
-
Tests if obj is javaScript function.
Obj must be a non-null String and match"^function[ ]?\\(.*\\)[ ]?\\{.*\\}$" - isFunctionHeader(Object) - Static method in class net.sf.json.util.JSONUtils
-
Tests if obj is javaScript function header.
Obj must be a non-null String and match "^function[ ]?\\(.*\\)$" - isHandleJettisonEmptyElement() - Method in class net.sf.json.JsonConfig
-
Returns true if this Jettison convention will be handled when converting to Java.
Jettison assumes that "" (empty string) can be assigned to empty elements (objects), which clearly violates the JSON spec.
[JSON -> Java] - isHandleJettisonSingleElementArray() - Method in class net.sf.json.JsonConfig
-
Returns true if this jettison convention will be handled when converting to Java.
Jettison states the following JSON {'media':{'title':'hello'}} can be set as a single element JSONArray (media is the array).
[JSON -> Java] - isIgnoreDefaultExcludes() - Method in class net.sf.json.JsonConfig
-
Returns true if default excludes will not be used.
Default value is false.
[Java -> JSON] - isIgnoreJPATransient() - Method in class net.sf.json.JsonConfig
-
Returns true if JPA Transient annotated methods should be ignored.
Default value is false.
[Java -> JSON] - isIgnorePublicFields() - Method in class net.sf.json.JsonConfig
-
Returns true if public fields of a bean will be ignored.
Default value is true.
[Java -> JSON] - isIgnoreTransientFields() - Method in class net.sf.json.JsonConfig
-
Returns true if transient fields of a bean will be ignored.
Default value is false.
[Java -> JSON] - isIgnoreUnreadableProperty() - Method in class net.sf.json.JsonConfig
- isJavaIdentifier(String) - Static method in class net.sf.json.util.JSONUtils
-
Returns trus if str represents a valid Java identifier.
- isJavascriptCompliant() - Method in class net.sf.json.JsonConfig
-
Returns true if Javascript compatibility is turned on.
Default value is false.
[Java -> JSON] - isJDK13() - Static method in class net.sf.json.regexp.RegexpUtils
-
Queries the environment for the supported JDK version.
- isJsonKeyword(String, JsonConfig) - Static method in class net.sf.json.util.JSONUtils
- isNamespaceLenient() - Method in class net.sf.json.xml.XMLSerializer
-
Returns wether this serializer is tolerant to namespaces without URIs or not.
- isNull(Object) - Static method in class net.sf.json.util.JSONUtils
-
Tests if the obj is a javaScript null.
- isNullObject() - Method in class net.sf.json.JSONObject
-
Returs if this object is a null JSONObject.
- isNumber(Class) - Static method in class net.sf.json.util.JSONUtils
-
Tests if Class represents a primitive number or wrapper.
- isNumber(Object) - Static method in class net.sf.json.util.JSONUtils
-
Tests if obj is a primitive number or wrapper.
- isObject(Object) - Static method in class net.sf.json.util.JSONUtils
-
Tests if obj is not a boolean, number, string or array.
- isRemoveNamespacePrefixFromElements() - Method in class net.sf.json.xml.XMLSerializer
-
Returns wether this serializer will remove namespace prefix from elements or not.
- isSkipJavaIdentifierTransformationInMapKeys() - Method in class net.sf.json.JsonConfig
-
Returns true if map keys will not be transformed.
Default value is false.
[JSON -> Java] - isSkipNamespaces() - Method in class net.sf.json.xml.XMLSerializer
-
Returns wether this serializer will skip adding namespace declarations to elements or not.
- isSkipWhitespace() - Method in class net.sf.json.xml.XMLSerializer
-
Returns wether this serializer will skip whitespace or not.
- isString(Class) - Static method in class net.sf.json.util.JSONUtils
-
Tests if Class represents a String or a char
- isString(Object) - Static method in class net.sf.json.util.JSONUtils
-
Tests if obj is a String or a char
- isTrimSpaces() - Method in class net.sf.json.xml.XMLSerializer
-
Returns wether this serializer will trim leading and trealing whitespace from values or not.
- isTypeHintsCompatibility() - Method in class net.sf.json.xml.XMLSerializer
-
Returns true if types hints will have a 'json_' prefix or not.
- isTypeHintsEnabled() - Method in class net.sf.json.xml.XMLSerializer
-
Returns true if JSON types will be included as attributes.
- isValidJsonValue(Object) - Static method in class net.sf.json.processors.JsonVerifier
-
Verifies if value is a valid JSON value.
- iterator() - Method in class net.sf.json.JSONArray
-
Returns an Iterator for this JSONArray
J
- JavaIdentifierTransformer - Class in net.sf.json.util
-
Transforms a string into a valid Java identifier.
There are five predefined strategies: NOOP: does not perform transformation. CAMEL_CASE: follows the camel case convention, deletes non JavaIndentifierPart chars. UNDERSCORE: transform whitespace and non JavaIdentifierPart chars to '_'. WHITESPACE: deletes whitespace and non JavaIdentifierPart chars. STRICT: always throws a JSONException, does not perform transformation. - JavaIdentifierTransformer() - Constructor for class net.sf.json.util.JavaIdentifierTransformer
- JdkRegexpMatcher - Class in net.sf.json.regexp
-
JDK 1.4+ RegexpMatcher implementation.
- JdkRegexpMatcher(String) - Constructor for class net.sf.json.regexp.JdkRegexpMatcher
- JdkRegexpMatcher(String, boolean) - Constructor for class net.sf.json.regexp.JdkRegexpMatcher
- join(String) - Method in class net.sf.json.JSONArray
-
Make a string from the contents of this JSONArray.
- join(String, boolean) - Method in class net.sf.json.JSONArray
-
Make a string from the contents of this JSONArray.
- JsDateJsonBeanProcessor - Class in net.sf.json.processors
-
Transforms a java.util.Date into a JSONObject ideal for JsDate conversion.
Example: - JsDateJsonBeanProcessor() - Constructor for class net.sf.json.processors.JsDateJsonBeanProcessor
- JsDateJsonValueProcessor - Class in net.sf.json.processors
-
Transforms a java.util.Date property into a JSONObject ideal for JsDate conversion
- JsDateJsonValueProcessor() - Constructor for class net.sf.json.processors.JsDateJsonValueProcessor
- JSON - Interface in net.sf.json
-
Marker interface, identifies a valid JSON value.
A JSON value may be aJSONObject
, aJSONArray
or aJSONNull
. - JSONArray - Class in net.sf.json
-
A JSONArray is an ordered sequence of values.
- JSONArray() - Constructor for class net.sf.json.JSONArray
-
Construct an empty JSONArray.
- JSONAssert - Class in net.sf.json.test
-
Provides assertions on equality for JSON strings and JSON types.
- JSONAssert() - Constructor for class net.sf.json.test.JSONAssert
- JsonBeanProcessor - Interface in net.sf.json.processors
-
Base interface for custom serialization per Bean.
- JsonBeanProcessorMatcher - Class in net.sf.json.processors
-
Base class for finding a matching JsonBeanProcessor.
DEFAULT - matches the target class with equals(). - JsonBeanProcessorMatcher() - Constructor for class net.sf.json.processors.JsonBeanProcessorMatcher
- JSONBuilder - Class in net.sf.json.util
-
JSONBuilder provides a quick and convenient way of producing JSON text.
- JSONBuilder(Writer) - Constructor for class net.sf.json.util.JSONBuilder
-
Make a fresh JSONBuilder.
- JsonConfig - Class in net.sf.json
-
Utility class that helps configuring the serialization process.
- JsonConfig() - Constructor for class net.sf.json.JsonConfig
- JsonEventListener - Interface in net.sf.json.util
-
Defines the contract to handle JsonEvents when building an object or array.
- JSONException - Exception in net.sf.json
-
The JSONException is thrown when things are amiss.
- JSONException() - Constructor for exception net.sf.json.JSONException
- JSONException(String) - Constructor for exception net.sf.json.JSONException
- JSONException(String, Throwable) - Constructor for exception net.sf.json.JSONException
- JSONException(Throwable) - Constructor for exception net.sf.json.JSONException
- JSONFunction - Class in net.sf.json
-
JSONFunction represents a javaScript function's text.
- JSONFunction(String) - Constructor for class net.sf.json.JSONFunction
-
Constructs a JSONFunction with no parameters.
- JSONFunction(String[], String) - Constructor for class net.sf.json.JSONFunction
-
Constructs a JSONFunction with parameters.
- JsonGroovyBuilder - Class in net.sf.json.groovy
-
A Groovy builder for JSON values.
- JsonGroovyBuilder() - Constructor for class net.sf.json.groovy.JsonGroovyBuilder
- JSONNull - Class in net.sf.json
-
JSONNull is equivalent to the value that JavaScript calls null, whilst Java's null is equivalent to the value that JavaScript calls undefined.
- JSONObject - Class in net.sf.json
-
A JSONObject is an unordered collection of name/value pairs.
- JSONObject() - Constructor for class net.sf.json.JSONObject
-
Construct an empty JSONObject.
- JSONObject(boolean) - Constructor for class net.sf.json.JSONObject
-
Creates a JSONObject that is null.
- JSONSerializer - Class in net.sf.json
-
Transforms java objects into JSON and back.
Transformation from java to JSON is pretty straightforward, but the other way around needs certain configuration, otherwise the java objects produced will be DynaBeans and Lists, because the JSON notation does not carry any information on java classes. - JSONSerializer() - Constructor for class net.sf.json.JSONSerializer
- JsonSlurper - Class in net.sf.json.groovy
-
A Helper class modeled after XmlSlurper
- JsonSlurper() - Constructor for class net.sf.json.groovy.JsonSlurper
- JsonSlurper(JsonConfig) - Constructor for class net.sf.json.groovy.JsonSlurper
- JSONString - Interface in net.sf.json
-
The
JSONString
interface allows atoJSONString()
method so that a class can change the behavior ofJSONObject.toString()
,JSONArray.toString()
, andJSONWriter.value(
Object)
. - JSONStringer - Class in net.sf.json.util
-
JSONStringer provides a quick and convenient way of producing JSON text.
- JSONStringer() - Constructor for class net.sf.json.util.JSONStringer
-
Make a fresh JSONStringer.
- JSONTokener - Class in net.sf.json.util
-
A JSONTokener takes a source string and extracts characters and tokens from it.
- JSONTokener(String) - Constructor for class net.sf.json.util.JSONTokener
-
Construct a JSONTokener from a string.
- JSONTypes - Interface in net.sf.json.xml
- JSONUtils - Class in net.sf.json.util
-
Provides useful methods on java objects and JSON values.
- JsonValueProcessor - Interface in net.sf.json.processors
-
Base interface for custom serialization per property.
- JsonValueProcessorMatcher - Class in net.sf.json.processors
-
Base class for finding a matching JsonValueProcessor.
DEFAULT - matches the target class with equals(). - JsonValueProcessorMatcher() - Constructor for class net.sf.json.processors.JsonValueProcessorMatcher
- JsonVerifier - Class in net.sf.json.processors
-
Verifies if a value is a valid JSON value.
- JsonVerifier() - Constructor for class net.sf.json.processors.JsonVerifier
K
- key(String) - Method in class net.sf.json.util.JSONBuilder
-
Append a key.
- keyMatches(Object, Object, String, Object) - Method in class net.sf.json.filters.MappingPropertyFilter
- keys() - Method in class net.sf.json.JSONObject
-
Get an enumeration of the keys of the JSONObject.
- keySet() - Method in class net.sf.json.JSONObject
L
- lastIndexOf(Object) - Method in class net.sf.json.JSONArray
- length() - Method in class net.sf.json.util.JSONTokener
- LENIENT - Static variable in class net.sf.json.util.CycleDetectionStrategy
-
Returns empty array and null object
- listIterator() - Method in class net.sf.json.JSONArray
- listIterator(int) - Method in class net.sf.json.JSONArray
M
- MappingPropertyFilter - Class in net.sf.json.filters
- MappingPropertyFilter() - Constructor for class net.sf.json.filters.MappingPropertyFilter
- MappingPropertyFilter(Map) - Constructor for class net.sf.json.filters.MappingPropertyFilter
- matches(String) - Method in class net.sf.json.regexp.JdkRegexpMatcher
- matches(String) - Method in class net.sf.json.regexp.Perl5RegexpMatcher
- matches(String) - Method in interface net.sf.json.regexp.RegexpMatcher
-
Returns true is the string macthes the Pattern.
The Pattern will be managed internally by the RegexpMatcher implementation. - matches(String) - Method in class net.sf.json.util.JSONTokener
- mayBeJSON(String) - Static method in class net.sf.json.util.JSONUtils
-
Tests if the String possibly represents a valid JSON String.
Valid JSON strings are: "null" starts with "[" and ends with "]" starts with "{" and ends with "}" - mode - Variable in class net.sf.json.util.JSONBuilder
-
The current mode.
- MODE_LIST - Static variable in class net.sf.json.JsonConfig
- MODE_OBJECT_ARRAY - Static variable in class net.sf.json.JsonConfig
- MODE_SET - Static variable in class net.sf.json.JsonConfig
- more() - Method in class net.sf.json.util.JSONTokener
-
Determine if the source string still contains characters that next() can consume.
- morph(Object) - Method in class net.sf.json.util.EnumMorpher
- morphsTo() - Method in class net.sf.json.util.EnumMorpher
N
- names() - Method in class net.sf.json.JSONObject
-
Produce a JSONArray containing the names of the elements of this JSONObject.
- names(JsonConfig) - Method in class net.sf.json.JSONObject
-
Produce a JSONArray containing the names of the elements of this JSONObject.
- net.sf.json - package net.sf.json
-
The core of the library
- net.sf.json.filters - package net.sf.json.filters
-
Support for custom serialization
- net.sf.json.groovy - package net.sf.json.groovy
-
Groovy support
- net.sf.json.processors - package net.sf.json.processors
-
Support for custom serialization
- net.sf.json.regexp - package net.sf.json.regexp
-
Regexp utilities
- net.sf.json.test - package net.sf.json.test
-
Testing utilities
- net.sf.json.util - package net.sf.json.util
-
Miscelaneous utilities
- net.sf.json.xml - package net.sf.json.xml
-
Utilities for trasforming JSON to XML and back.
- NewBeanInstanceStrategy - Class in net.sf.json.util
-
Base class for creating Bean instances.
DEFAULT - calls Class.newInstance(). - NewBeanInstanceStrategy() - Constructor for class net.sf.json.util.NewBeanInstanceStrategy
- newDynaBean(JSONObject) - Static method in class net.sf.json.util.JSONUtils
-
Creates a new MorphDynaBean from a JSONObject.
- newDynaBean(JSONObject, JsonConfig) - Static method in class net.sf.json.util.JSONUtils
-
Creates a new MorphDynaBean from a JSONObject.
- newInstance(Class, JSONObject) - Method in class net.sf.json.util.NewBeanInstanceStrategy
-
Creates a new instance.
- next() - Method in class net.sf.json.util.JSONTokener
-
Get the next character in the source string.
- next(char) - Method in class net.sf.json.util.JSONTokener
-
Consume the next character, and check that it matches a specified character.
- next(int) - Method in class net.sf.json.util.JSONTokener
-
Get the next n characters.
- nextClean() - Method in class net.sf.json.util.JSONTokener
-
Get the next char in the string, skipping whitespace and comments (slashslash, slashstar, and hash).
- nextString(char) - Method in class net.sf.json.util.JSONTokener
-
Return the characters up to the next close quote character.
- nextTo(char) - Method in class net.sf.json.util.JSONTokener
-
Get the text up but not including the specified character or the end of line, whichever comes first.
- nextTo(String) - Method in class net.sf.json.util.JSONTokener
-
Get the text up but not including one of the specified delimeter characters or the end of line, whichever comes first.
- nextValue() - Method in class net.sf.json.util.JSONTokener
-
Get the next value.
- nextValue(JsonConfig) - Method in class net.sf.json.util.JSONTokener
-
Get the next value.
- NOOP - Static variable in class net.sf.json.util.JavaIdentifierTransformer
-
Noop transformer '@invalid' => '@invalid'
- NOPROP - Static variable in class net.sf.json.util.CycleDetectionStrategy
-
Returns a special object (IGNORE_PROPERTY_OBJ) that indicates the entire property should be ignored
- NotPropertyFilter - Class in net.sf.json.filters
- NotPropertyFilter(PropertyFilter) - Constructor for class net.sf.json.filters.NotPropertyFilter
- NUMBER - Static variable in interface net.sf.json.xml.JSONTypes
- numberToString(Number) - Static method in class net.sf.json.util.JSONUtils
-
Produce a string from a Number.
O
- object() - Method in class net.sf.json.util.JSONBuilder
-
Begin appending a new object.
- OBJECT - Static variable in interface net.sf.json.xml.JSONTypes
- onArrayEnd() - Method in interface net.sf.json.util.JsonEventListener
-
Ttriggered when reaching the end of an array.
- onArrayStart() - Method in interface net.sf.json.util.JsonEventListener
-
triggered when the start of an array is encountered.
- onElementAdded(int, Object) - Method in interface net.sf.json.util.JsonEventListener
-
Triggered when an element has been added to the current array.
- onError(JSONException) - Method in interface net.sf.json.util.JsonEventListener
-
Triggered when an exception is thrown.
- onObjectEnd() - Method in interface net.sf.json.util.JsonEventListener
-
triggered when reaching the end of an object.
- onObjectStart() - Method in interface net.sf.json.util.JsonEventListener
-
Triggered when the start of an object is encountered.
- onPropertySet(String, Object, boolean) - Method in interface net.sf.json.util.JsonEventListener
-
Triggered when a property is set on an object
- onWarning(String) - Method in interface net.sf.json.util.JsonEventListener
-
Triggered when a warning is encountered.
- opt(int) - Method in class net.sf.json.JSONArray
-
Get the optional object value associated with an index.
- opt(String) - Method in class net.sf.json.JSONObject
-
Get an optional value associated with a key.
- optBoolean(int) - Method in class net.sf.json.JSONArray
-
Get the optional boolean value associated with an index.
- optBoolean(int, boolean) - Method in class net.sf.json.JSONArray
-
Get the optional boolean value associated with an index.
- optBoolean(String) - Method in class net.sf.json.JSONObject
-
Get an optional boolean associated with a key.
- optBoolean(String, boolean) - Method in class net.sf.json.JSONObject
-
Get an optional boolean associated with a key.
- optDouble(int) - Method in class net.sf.json.JSONArray
-
Get the optional double value associated with an index.
- optDouble(int, double) - Method in class net.sf.json.JSONArray
-
Get the optional double value associated with an index.
- optDouble(String) - Method in class net.sf.json.JSONObject
-
Get an optional double associated with a key, or NaN if there is no such key or if its value is not a number.
- optDouble(String, double) - Method in class net.sf.json.JSONObject
-
Get an optional double associated with a key, or the defaultValue if there is no such key or if its value is not a number.
- optInt(int) - Method in class net.sf.json.JSONArray
-
Get the optional int value associated with an index.
- optInt(int, int) - Method in class net.sf.json.JSONArray
-
Get the optional int value associated with an index.
- optInt(String) - Method in class net.sf.json.JSONObject
-
Get an optional int value associated with a key, or zero if there is no such key or if the value is not a number.
- optInt(String, int) - Method in class net.sf.json.JSONObject
-
Get an optional int value associated with a key, or the default if there is no such key or if the value is not a number.
- optJSONArray(int) - Method in class net.sf.json.JSONArray
-
Get the optional JSONArray associated with an index.
- optJSONArray(String) - Method in class net.sf.json.JSONObject
-
Get an optional JSONArray associated with a key.
- optJSONObject(int) - Method in class net.sf.json.JSONArray
-
Get the optional JSONObject associated with an index.
- optJSONObject(String) - Method in class net.sf.json.JSONObject
-
Get an optional JSONObject associated with a key.
- optLong(int) - Method in class net.sf.json.JSONArray
-
Get the optional long value associated with an index.
- optLong(int, long) - Method in class net.sf.json.JSONArray
-
Get the optional long value associated with an index.
- optLong(String) - Method in class net.sf.json.JSONObject
-
Get an optional long value associated with a key, or zero if there is no such key or if the value is not a number.
- optLong(String, long) - Method in class net.sf.json.JSONObject
-
Get an optional long value associated with a key, or the default if there is no such key or if the value is not a number.
- optString(int) - Method in class net.sf.json.JSONArray
-
Get the optional string value associated with an index.
- optString(int, String) - Method in class net.sf.json.JSONArray
-
Get the optional string associated with an index.
- optString(String) - Method in class net.sf.json.JSONObject
-
Get an optional string associated with a key.
- optString(String, String) - Method in class net.sf.json.JSONObject
-
Get an optional string associated with a key.
- OrPropertyFilter - Class in net.sf.json.filters
- OrPropertyFilter(PropertyFilter, PropertyFilter) - Constructor for class net.sf.json.filters.OrPropertyFilter
P
- parse(File) - Method in class net.sf.json.groovy.JsonSlurper
- parse(InputStream) - Method in class net.sf.json.groovy.JsonSlurper
- parse(Reader) - Method in class net.sf.json.groovy.JsonSlurper
- parse(String) - Method in class net.sf.json.groovy.JsonSlurper
- parse(String) - Static method in class net.sf.json.JSONFunction
-
Constructs a JSONFunction from a text representation
- parse(URL) - Method in class net.sf.json.groovy.JsonSlurper
- parseText(String) - Method in class net.sf.json.groovy.JsonSlurper
- peek() - Method in class net.sf.json.util.JSONTokener
-
Look at the next character in the source string.
- Perl5RegexpMatcher - Class in net.sf.json.regexp
-
Jakarta-oro RegexpMatcher Implementation.
Runs on older JVMs (1.3.1). - Perl5RegexpMatcher(String) - Constructor for class net.sf.json.regexp.Perl5RegexpMatcher
- Perl5RegexpMatcher(String, boolean) - Constructor for class net.sf.json.regexp.Perl5RegexpMatcher
- processArrayValue(Object, JsonConfig) - Method in class net.sf.json.processors.JsDateJsonValueProcessor
- processArrayValue(Object, JsonConfig) - Method in interface net.sf.json.processors.JsonValueProcessor
-
Processes the value an returns a suitable JSON value.
- processBean(Object, JsonConfig) - Method in class net.sf.json.processors.JsDateJsonBeanProcessor
-
Processes the input bean into a compatible JsDate.
- processBean(Object, JsonConfig) - Method in interface net.sf.json.processors.JsonBeanProcessor
-
Processes the bean an returns a suitable JSONObject representation.
- processObjectValue(String, Object, JsonConfig) - Method in class net.sf.json.processors.JsDateJsonValueProcessor
- processObjectValue(String, Object, JsonConfig) - Method in interface net.sf.json.processors.JsonValueProcessor
-
Processes the value an returns a suitable JSON value.
- processPropertyName(Class, String) - Method in interface net.sf.json.processors.PropertyNameProcessor
-
Processes the property name.
- PropertyExclusionClassMatcher - Class in net.sf.json.util
-
Base class for finding a matching property exlucsion.
DEFAULT - matches the target class with equals(). - PropertyExclusionClassMatcher() - Constructor for class net.sf.json.util.PropertyExclusionClassMatcher
- PropertyFilter - Interface in net.sf.json.util
- PropertyNameProcessor - Interface in net.sf.json.processors
-
Base interface for mutating property names of a Bean.
- PropertyNameProcessorMatcher - Class in net.sf.json.processors
-
Base class for finding a matching PropertyNameProcessor.
DEFAULT - matches the target class with equals(). - PropertyNameProcessorMatcher() - Constructor for class net.sf.json.processors.PropertyNameProcessorMatcher
- PropertySetStrategy - Class in net.sf.json.util
-
Defines a custom setter to be used when setting object values.
Specify with JsonConfig.setJsonPropertySetter(). - PropertySetStrategy() - Constructor for class net.sf.json.util.PropertySetStrategy
- protect(String) - Method in class net.sf.json.util.WebHijackPreventionStrategy
-
Transforms the input with the desired strategy.
- protect(JSON) - Static method in class net.sf.json.util.WebUtils
-
Transforms the input Json string using the configured WebHijackPreventionStrategy.
- protect(JSON, boolean) - Static method in class net.sf.json.util.WebUtils
-
Transforms the input Json string using the configured WebHijackPreventionStrategy.
- put(String, Object) - Method in class net.sf.json.JSONObject
- putAll(Map) - Method in class net.sf.json.JSONObject
- putAll(Map, JsonConfig) - Method in class net.sf.json.JSONObject
Q
- quote(String) - Static method in class net.sf.json.util.JSONUtils
-
Produce a string in double quotes with backslash sequences in all the right places.
- quoteCanonical(String) - Static method in class net.sf.json.util.JSONUtils
-
Minimal escape form.
R
- read(String) - Method in class net.sf.json.xml.XMLSerializer
-
Creates a JSON value from a XML string.
- readFromFile(File) - Method in class net.sf.json.xml.XMLSerializer
-
Creates a JSON value from a File.
- readFromFile(String) - Method in class net.sf.json.xml.XMLSerializer
-
Creates a JSON value from a File.
- readFromStream(InputStream) - Method in class net.sf.json.xml.XMLSerializer
-
Creates a JSON value from an input stream.
- RegexpMatcher - Interface in net.sf.json.regexp
-
Abstraction for regexp handling.
- RegexpUtils - Class in net.sf.json.regexp
-
Convenience utility for working withRegexpMatcher.
- registerDefaultValueProcessor(Class, DefaultValueProcessor) - Method in class net.sf.json.JsonConfig
-
Registers a DefaultValueProcessor.
[Java -> JSON] - registerJavaPropertyNameProcessor(Class, PropertyNameProcessor) - Method in class net.sf.json.JsonConfig
-
Registers a PropertyNameProcessor.
[JSON -> Java] - registerJsonBeanProcessor(Class, JsonBeanProcessor) - Method in class net.sf.json.JsonConfig
-
Registers a JsonBeanProcessor.
[Java -> JSON] - registerJsonPropertyNameProcessor(Class, PropertyNameProcessor) - Method in class net.sf.json.JsonConfig
-
Registers a PropertyNameProcessor.
[Java -> JSON] - registerJsonValueProcessor(Class, Class, JsonValueProcessor) - Method in class net.sf.json.JsonConfig
-
Registers a JsonValueProcessor.
[Java -> JSON] - registerJsonValueProcessor(Class, String, JsonValueProcessor) - Method in class net.sf.json.JsonConfig
-
Registers a JsonValueProcessor.
[Java -> JSON] - registerJsonValueProcessor(Class, JsonValueProcessor) - Method in class net.sf.json.JsonConfig
-
Registers a JsonValueProcessor.
[Java -> JSON] - registerJsonValueProcessor(String, JsonValueProcessor) - Method in class net.sf.json.JsonConfig
-
Registers a JsonValueProcessor.
[Java -> JSON] - registerPropertyExclusion(Class, String) - Method in class net.sf.json.JsonConfig
-
Registers a exclusion for a target class.
[Java -> JSON] - registerPropertyExclusions(Class, String[]) - Method in class net.sf.json.JsonConfig
-
Registers exclusions for a target class.
[Java -> JSON] - registerPropertyNameProcessor(Class, PropertyNameProcessor) - Method in class net.sf.json.JsonConfig
-
Deprecated.use registerJavaPropertyNameProcessor() instead
- remove(int) - Method in class net.sf.json.JSONArray
- remove(Object) - Method in class net.sf.json.JSONArray
- remove(Object) - Method in class net.sf.json.JSONObject
- remove(String) - Method in class net.sf.json.JSONObject
-
Remove a name and its value, if present.
- removeAll(Collection) - Method in class net.sf.json.JSONArray
- removeAll(Collection, JsonConfig) - Method in class net.sf.json.JSONArray
- removeIgnoreFieldAnnotation(Class) - Method in class net.sf.json.JsonConfig
-
Removes an annotation that marks a field to be skipped when building.
[Java -> JSON] - removeIgnoreFieldAnnotation(String) - Method in class net.sf.json.JsonConfig
-
Adds an annotation that marks a field to be skipped when building.
[Java -> JSON] - removeJsonEventListener(JsonEventListener) - Method in class net.sf.json.JsonConfig
-
Removes a listener for JSON events.
[Java -> JSON] - removeNamespace(String) - Method in class net.sf.json.xml.XMLSerializer
-
Removes a namespace from the root element.
- removeNamespace(String, String) - Method in class net.sf.json.xml.XMLSerializer
-
Removes a namespace from the root element.
If the elementName is null or blank, the namespace will be removed from the root element. - removePropertyFilter(Object) - Method in class net.sf.json.filters.MappingPropertyFilter
- removePropertyFilter(PropertyFilter) - Method in class net.sf.json.filters.CompositePropertyFilter
- reset() - Method in class net.sf.json.JsonConfig
-
Resets all values to its default state.
- reset() - Method in class net.sf.json.util.JSONTokener
- retainAll(Collection) - Method in class net.sf.json.JSONArray
- retainAll(Collection, JsonConfig) - Method in class net.sf.json.JSONArray
S
- set(int, Object) - Method in class net.sf.json.JSONArray
- set(int, Object, JsonConfig) - Method in class net.sf.json.JSONArray
- setAllowNonStringKeys(boolean) - Method in class net.sf.json.JsonConfig
-
Sets if non-String keys are allowed on JSONObject.
[Java -> JSON] - setArrayMode(int) - Method in class net.sf.json.JsonConfig
-
Sets the current array mode for conversion.
If the value is not MODE_LIST, MODE_OBJECT_ARRAY nor MODE_SET, then MODE_LIST will be used.
[JSON -> Java] - setArrayName(String) - Method in class net.sf.json.xml.XMLSerializer
-
Sets the name used for JSONArray.
Default is 'a'. - setClassMap(Map) - Method in class net.sf.json.JsonConfig
-
Sets the current attribute/Class Map
[JSON -> Java] - setCollectionType(Class) - Method in class net.sf.json.JsonConfig
-
Sets the current collection type used for collection transformations.
[JSON -> Java] - setCycleDetectionStrategy(CycleDetectionStrategy) - Method in class net.sf.json.JsonConfig
-
Sets a CycleDetectionStrategy to use.
Will set default value (CycleDetectionStrategy.STRICT) if null.
[Java -> JSON] - setDefaultValueProcessorMatcher(DefaultValueProcessorMatcher) - Method in class net.sf.json.JsonConfig
-
Sets a DefaultValueProcessorMatcher to use.
Will set default value (DefaultValueProcessorMatcher.DEFAULT) if null.
[Java -> JSON] - setElementName(String) - Method in class net.sf.json.xml.XMLSerializer
-
Sets the name used for JSONArray elements.
Default is 'e'. - setEnclosedType(Class) - Method in class net.sf.json.JsonConfig
-
Sets the current enclosed type for generic collection transformations.
[JSON -> Java] - setExcludes(String[]) - Method in class net.sf.json.JsonConfig
-
Sets the excludes to use.
Will set default value ([]) if null.
[Java -> JSON] - setExpandableProperties(String[]) - Method in class net.sf.json.xml.XMLSerializer
-
Sets the list of properties to be expanded from child to parent.
- setExpandElements(boolean) - Method in class net.sf.json.JSONArray
- setForceTopLevelObject(boolean) - Method in class net.sf.json.xml.XMLSerializer
- setHandleJettisonEmptyElement(boolean) - Method in class net.sf.json.JsonConfig
-
Activate/Deactivate handling this jettison convention when converting to Java.
Jettison states that "" (empty string) can be assigned to empty elements (objects), which clearly violates the JSON spec.
[JSON -> Java] - setHandleJettisonSingleElementArray(boolean) - Method in class net.sf.json.JsonConfig
-
Activate/Deactivate handling this jettison convention when converting to Java.
* Jettison states the following JSON {'media':{'title':'hello'}} can be set as a single element JSONArray (media is the array).
[JSON -> Java] - setIgnoreDefaultExcludes(boolean) - Method in class net.sf.json.JsonConfig
-
Sets if default excludes would be skipped when building.
[Java -> JSON] - setIgnoreJPATransient(boolean) - Method in class net.sf.json.JsonConfig
-
Sets if JPA Transient annotated methods would be skipped when building.
[Java -> JSON] - setIgnorePublicFields(boolean) - Method in class net.sf.json.JsonConfig
-
Sets if public fields would be skipped when building.
[Java -> JSON] - setIgnoreTransientFields(boolean) - Method in class net.sf.json.JsonConfig
-
Sets if transient fields would be skipped when building.
[Java -> JSON] - setIgnoreUnreadableProperty(boolean) - Method in class net.sf.json.JsonConfig
-
If true, properties found in JSON that have no corresponding Java setter/field/etc will not raise an exception.
- setJavaIdentifierTransformer(JavaIdentifierTransformer) - Method in class net.sf.json.JsonConfig
-
Sets the JavaIdentifierTransformer to use.
Will set default value (JavaIdentifierTransformer.NOOP) if null.
[JSON -> Java] - setJavaPropertyFilter(PropertyFilter) - Method in class net.sf.json.JsonConfig
-
Sets a property filter used when serializing to Java.
[JSON -> Java] - setJavaPropertyNameProcessorMatcher(PropertyNameProcessorMatcher) - Method in class net.sf.json.JsonConfig
-
Sets a PropertyNameProcessorMatcher to use.
Will set default value (PropertyNameProcessorMatcher.DEFAULT) if null.
[JSON -> Java] - setJavascriptCompliant(boolean) - Method in class net.sf.json.JsonConfig
-
Sets if Javascript compatibility is enabled when building.
[Java -> JSON] - setJsonBeanProcessorMatcher(JsonBeanProcessorMatcher) - Method in class net.sf.json.JsonConfig
-
Sets a JsonBeanProcessorMatcher to use.
Will set default value (JsonBeanProcessorMatcher.DEFAULT) if null.
[Java -> JSON] - setJsonConfig(JsonConfig) - Method in class net.sf.json.groovy.JsonGroovyBuilder
- setJsonPropertyFilter(PropertyFilter) - Method in class net.sf.json.JsonConfig
-
Sets a property filter used when serializing to JSON.
[Java -> JSON] - setJsonPropertyNameProcessorMatcher(PropertyNameProcessorMatcher) - Method in class net.sf.json.JsonConfig
-
Sets a PropertyNameProcessorMatcher to use.
Will set default value (PropertyNameProcessorMatcher.DEFAULT) if null.
[Java -> JSON] - setJsonValueProcessorMatcher(JsonValueProcessorMatcher) - Method in class net.sf.json.JsonConfig
-
Sets a JsonValueProcessorMatcher to use.
Will set default value (JsonValueProcessorMatcher.DEFAULT) if null.
[Java -> JSON] - setNamespace(String, String) - Method in class net.sf.json.xml.XMLSerializer
-
Sets the namespace declaration to the root element.
Any previous values are discarded. - setNamespace(String, String, String) - Method in class net.sf.json.xml.XMLSerializer
-
Adds a namespace declaration to an element.
Any previous values are discarded. - setNamespaceLenient(boolean) - Method in class net.sf.json.xml.XMLSerializer
-
Sets wether this serializer is tolerant to namespaces without URIs or not.
- setNewBeanInstanceStrategy(NewBeanInstanceStrategy) - Method in class net.sf.json.JsonConfig
-
Sets the NewBeanInstanceStrategy to use.
Will set default value (NewBeanInstanceStrategy.DEFAULT) if null.
[JSON -> Java] - setObjectName(String) - Method in class net.sf.json.xml.XMLSerializer
-
Sets the name used for JSONObject.
Default is 'o'. - setProperty(Object, String, Object) - Method in class net.sf.json.util.PropertySetStrategy
- setProperty(Object, String, Object, JsonConfig) - Method in class net.sf.json.util.PropertySetStrategy
- setProperty(String, Object) - Method in class net.sf.json.groovy.JsonGroovyBuilder
- setPropertyExclusionClassMatcher(PropertyExclusionClassMatcher) - Method in class net.sf.json.JsonConfig
-
Sets a PropertyExclusionClassMatcher to use.
Will set default value (PropertyExclusionClassMatcher.DEFAULT) if null.
[Java -> JSON] - setPropertyNameProcessorMatcher(PropertyNameProcessorMatcher) - Method in class net.sf.json.JsonConfig
-
Deprecated.use setJavaPropertyNameProcessorMatcher() instead
- setPropertySetStrategy(PropertySetStrategy) - Method in class net.sf.json.JsonConfig
-
Sets a PropertySetStrategy to use.
Will set default value (PropertySetStrategy.DEFAULT) if null.
[JSON -> Java] - setRemoveNamespacePrefixFromElements(boolean) - Method in class net.sf.json.xml.XMLSerializer
-
Sets if this serializer will remove namespace prefix from elements when reading.
- setRootClass(Class) - Method in class net.sf.json.JsonConfig
-
Sets the current root Class.
[JSON -> Java] - setRootName(String) - Method in class net.sf.json.xml.XMLSerializer
-
Sets the name used for the root element.
- setSkipJavaIdentifierTransformationInMapKeys(boolean) - Method in class net.sf.json.JsonConfig
-
Sets if property name as JavaIndetifier transformations would be skipped.
[JSON -> Java] - setSkipNamespaces(boolean) - Method in class net.sf.json.xml.XMLSerializer
-
Sets if this serializer will skip adding namespace declarations to elements when reading.
- setSkipWhitespace(boolean) - Method in class net.sf.json.xml.XMLSerializer
-
Sets if this serializer will skip whitespace when reading.
- setTrimSpaces(boolean) - Method in class net.sf.json.xml.XMLSerializer
-
Sets if this serializer will trim leading and trealing whitespace from values when reading.
- setTypeHintsCompatibility(boolean) - Method in class net.sf.json.xml.XMLSerializer
-
Sets wether types hints will have a 'json_' prefix or not.
- setTypeHintsEnabled(boolean) - Method in class net.sf.json.xml.XMLSerializer
-
Sets wether JSON types will be included as attributes.
- setWebHijackPreventionStrategy(WebHijackPreventionStrategy) - Static method in class net.sf.json.util.WebUtils
-
Sets a WebHijackPreventionStrategy.
Will use default value (WebHijackPreventionStrategy.INFINITE_LOOP) if null. - shaveOffNonJavaIdentifierStartChars(String) - Method in class net.sf.json.util.JavaIdentifierTransformer
-
Removes all non JavaIdentifier chars from the start of the string.
- SINGLE_QUOTE - Static variable in class net.sf.json.util.JSONUtils
-
Constant for char '
- size() - Method in interface net.sf.json.JSON
-
Returns the number of properties in an object or the size of the array.
- size() - Method in class net.sf.json.JSONArray
-
Get the number of elements in the JSONArray, included nulls.
- size() - Method in class net.sf.json.JSONNull
- size() - Method in class net.sf.json.JSONObject
-
Get the number of keys stored in the JSONObject.
- skipPast(String) - Method in class net.sf.json.util.JSONTokener
-
Skip characters until past the requested string.
- skipTo(char) - Method in class net.sf.json.util.JSONTokener
-
Skip characters until the next character is the requested character.
- STRICT - Static variable in class net.sf.json.util.CycleDetectionStrategy
-
Throws a JSONException
- STRICT - Static variable in class net.sf.json.util.JavaIdentifierTransformer
-
Strict transformer '@invalid' => JSONException
- STRING - Static variable in interface net.sf.json.xml.JSONTypes
- stripQuotes(String) - Static method in class net.sf.json.util.JSONUtils
-
Strips any single-quotes or double-quotes from both sides of the string.
- subList(int, int) - Method in class net.sf.json.JSONArray
- supports(Class) - Method in class net.sf.json.util.EnumMorpher
- syntaxError(String) - Method in class net.sf.json.util.JSONTokener
-
Make a JSONException to signal a syntax error.
T
- testValidity(Object) - Static method in class net.sf.json.util.JSONUtils
-
Throw an exception if the object is an NaN or infinite number.
- toArray() - Method in class net.sf.json.JSONArray
-
Produce an Object[] with the contents of this JSONArray.
- toArray(Object[]) - Method in class net.sf.json.JSONArray
- toArray(JSONArray) - Static method in class net.sf.json.JSONArray
-
Creates a java array from a JSONArray.
- toArray(JSONArray, Class) - Static method in class net.sf.json.JSONArray
-
Creates a java array from a JSONArray.
- toArray(JSONArray, Class, Map) - Static method in class net.sf.json.JSONArray
-
Creates a java array from a JSONArray.
Any attribute is a JSONObject and matches a key in the classMap, it will be converted to that target class.
The classMap has the following conventions: Every key must be an String. Every value must be a Class. A key may be a regular expression. - toArray(JSONArray, Object, JsonConfig) - Static method in class net.sf.json.JSONArray
-
Creates a java array from a JSONArray.
- toArray(JSONArray, JsonConfig) - Static method in class net.sf.json.JSONArray
-
Creates a java array from a JSONArray.
- toBean() - Method in class net.sf.json.JSONObject
-
Creates a JSONDynaBean from a JSONObject.
- toBean(Class) - Method in class net.sf.json.JSONObject
- toBean(JSONObject) - Static method in class net.sf.json.JSONObject
- toBean(JSONObject, Class) - Static method in class net.sf.json.JSONObject
-
Creates a bean from a JSONObject, with a specific target class.
- toBean(JSONObject, Class, Map) - Static method in class net.sf.json.JSONObject
-
Creates a bean from a JSONObject, with a specific target class.
If beanClass is null, this method will return a graph of DynaBeans. - toBean(JSONObject, Object, JsonConfig) - Static method in class net.sf.json.JSONObject
-
Creates a bean from a JSONObject, with the specific configuration.
- toBean(JSONObject, JsonConfig) - Static method in class net.sf.json.JSONObject
-
Creates a bean from a JSONObject, with the specific configuration.
- toCollection(JSONArray) - Static method in class net.sf.json.JSONArray
-
Returns a List or a Set taking generics into account.
- toCollection(JSONArray, Class) - Static method in class net.sf.json.JSONArray
-
Returns a List or a Set taking generics into account.
- toCollection(JSONArray, JsonConfig) - Static method in class net.sf.json.JSONArray
-
Returns a List or a Set taking generics into account.
Contributed by [Matt Small @ WaveMaker]. - toJava(JSON) - Static method in class net.sf.json.JSONSerializer
-
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. - toJava(JSON, JsonConfig) - Static method in class net.sf.json.JSONSerializer
-
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. - toJSON(Object) - Static method in class net.sf.json.JSONSerializer
-
Creates a JSONObject, JSONArray or a JSONNull from object.
Accepts JSON formatted strings, Maps, arrays, Collections, DynaBeans and JavaBeans. - toJSON(Object, JsonConfig) - Static method in class net.sf.json.JSONSerializer
-
Creates a JSONObject, JSONArray or a JSONNull from object.
Accepts JSON formatted strings, Maps, arrays, Collections, DynaBeans and JavaBeans. - toJSONArray(JSONArray) - Method in class net.sf.json.JSONObject
-
Produce a JSONArray containing the values of the members of this JSONObject.
- toJSONObject(JSONArray) - Method in class net.sf.json.JSONArray
-
Produce a JSONObject by combining a JSONArray of names with the values of this JSONArray.
- toJSONString() - Method in interface net.sf.json.JSONString
-
The
toJSONString
method allows a class to produce its own JSON serialization. - toList(JSONArray) - Static method in class net.sf.json.JSONArray
-
Deprecated.replaced by toCollection
- toList(JSONArray, Class) - Static method in class net.sf.json.JSONArray
-
Deprecated.replaced by toCollection
- toList(JSONArray, Class, Map) - Static method in class net.sf.json.JSONArray
-
Deprecated.replaced by toCollection
- toList(JSONArray, Object, JsonConfig) - Static method in class net.sf.json.JSONArray
-
Creates a List from a JSONArray.
- toList(JSONArray, JsonConfig) - Static method in class net.sf.json.JSONArray
-
Deprecated.replaced by toCollection
- toString() - Method in class net.sf.json.JSONArray
-
Make a JSON text of this JSONArray.
- toString() - Method in class net.sf.json.JSONFunction
-
Returns the string representation of this function.
- toString() - Method in class net.sf.json.JSONNull
-
Get the "null" string value.
- toString() - Method in class net.sf.json.JSONObject
-
Make a JSON text of this JSONObject.
- toString() - Method in class net.sf.json.util.JSONStringer
-
Return the JSON text.
- toString() - Method in class net.sf.json.util.JSONTokener
-
Make a printable string of this JSONTokener.
- toString(int) - Method in interface net.sf.json.JSON
-
Make a prettyprinted JSON text.
- toString(int) - Method in class net.sf.json.JSONArray
-
Make a prettyprinted JSON text of this JSONArray.
- toString(int) - Method in class net.sf.json.JSONNull
- toString(int) - Method in class net.sf.json.JSONObject
-
Make a prettyprinted JSON text of this JSONObject.
- toString(int, int) - Method in interface net.sf.json.JSON
-
Make a prettyprinted JSON text.
- toString(int, int) - Method in class net.sf.json.JSONArray
-
Make a prettyprinted JSON text of this JSONArray.
- toString(int, int) - Method in class net.sf.json.JSONNull
- toString(int, int) - Method in class net.sf.json.JSONObject
-
Make a prettyprinted JSON text of this JSONObject.
- toString(JSON) - Static method in class net.sf.json.util.WebUtils
-
Returns a string represenation of a JSON value.
When an object property name does not contain a space (' ') or a colon (':'), the quotes are omitted. - transformNumber(Number) - Static method in class net.sf.json.util.JSONUtils
-
Transforms a Number into a valid javascript number.
Float gets promoted to Double.
Byte and Short get promoted to Integer.
Long gets downgraded to Integer if possible. - transformToJavaIdentifier(String) - Method in class net.sf.json.util.JavaIdentifierTransformer
- TruePropertyFilter - Class in net.sf.json.filters
- TruePropertyFilter() - Constructor for class net.sf.json.filters.TruePropertyFilter
U
- UNDERSCORE - Static variable in class net.sf.json.util.JavaIdentifierTransformer
-
Underscore transformer 'under score' => 'under_score'
- unregisterDefaultValueProcessor(Class) - Method in class net.sf.json.JsonConfig
-
Removes a DefaultValueProcessor.
[Java -> JSON] - unregisterJavaPropertyNameProcessor(Class) - Method in class net.sf.json.JsonConfig
-
Removes a PropertyNameProcessor.
[JSON -> Java] - unregisterJsonBeanProcessor(Class) - Method in class net.sf.json.JsonConfig
-
Removes a JsonBeanProcessor.
[Java -> JSON] - unregisterJsonPropertyNameProcessor(Class) - Method in class net.sf.json.JsonConfig
-
Removes a PropertyNameProcessor.
[Java -> JSON] - unregisterJsonValueProcessor(Class) - Method in class net.sf.json.JsonConfig
-
Removes a JsonValueProcessor.
[Java -> JSON] - unregisterJsonValueProcessor(Class, Class) - Method in class net.sf.json.JsonConfig
-
Removes a JsonValueProcessor.
[Java -> JSON] - unregisterJsonValueProcessor(Class, String) - Method in class net.sf.json.JsonConfig
-
Removes a JsonValueProcessor.
[Java -> JSON] - unregisterJsonValueProcessor(String) - Method in class net.sf.json.JsonConfig
-
Removes a JsonValueProcessor.
[Java -> JSON] - unregisterPropertyExclusion(Class, String) - Method in class net.sf.json.JsonConfig
-
Removes a property exclusion assigned to the target class.
[Java -> JSON] - unregisterPropertyExclusions(Class) - Method in class net.sf.json.JsonConfig
-
Removes all property exclusions assigned to the target class.
[Java -> JSON] - unregisterPropertyNameProcessor(Class) - Method in class net.sf.json.JsonConfig
-
Deprecated.use unregisterJavaPropertyNameProcessor() instead
V
- value(boolean) - Method in class net.sf.json.util.JSONBuilder
-
Append either the value
true
or the valuefalse
. - value(double) - Method in class net.sf.json.util.JSONBuilder
-
Append a double value.
- value(long) - Method in class net.sf.json.util.JSONBuilder
-
Append a long value.
- value(Object) - Method in class net.sf.json.util.JSONBuilder
-
Append an object value.
- values() - Method in class net.sf.json.JSONObject
- valueToCanonicalString(Object) - Static method in class net.sf.json.util.JSONUtils
- valueToString(Object) - Static method in class net.sf.json.util.JSONUtils
-
Make a JSON text of an Object value.
- valueToString(Object, int, int) - Static method in class net.sf.json.util.JSONUtils
-
Make a prettyprinted JSON text of an object value.
W
- WebHijackPreventionStrategy - Class in net.sf.json.util
-
Defines base implementations for preventing WebHijack in AJAX applications.
- WebHijackPreventionStrategy() - Constructor for class net.sf.json.util.WebHijackPreventionStrategy
- WebUtils - Class in net.sf.json.util
-
Provides useful methods for working with JSON and web.
- WHITESPACE - Static variable in class net.sf.json.util.JavaIdentifierTransformer
-
Whitespace transformer 'white space' => 'whitespace'
- write(Writer) - Method in interface net.sf.json.JSON
-
Write the contents as JSON text to a writer.
- write(Writer) - Method in class net.sf.json.JSONNull
- write(Writer, AbstractJSON.WritingVisitor) - Method in class net.sf.json.JSONArray
- write(Writer, AbstractJSON.WritingVisitor) - Method in class net.sf.json.JSONObject
-
Write the contents of the JSONObject as JSON text to a writer.
- write(JSON) - Method in class net.sf.json.xml.XMLSerializer
-
Writes a JSON value into a XML string with UTF-8 encoding.
- write(JSON, String) - Method in class net.sf.json.xml.XMLSerializer
-
Writes a JSON value into a XML string with an specific encoding.
If the encoding string is null it will use UTF-8. - writeCanonical(Writer) - Method in interface net.sf.json.JSON
-
Writes the canonicalized form of this JSON object.
- writeCanonical(Writer) - Method in class net.sf.json.JSONNull
- writer - Variable in class net.sf.json.util.JSONBuilder
-
The writer that will receive the output.
X
- XMLSerializer - Class in net.sf.json.xml
-
Utility class for transforming JSON to XML an back.
When transforming JSONObject and JSONArray instances to XML, this class will add hints for converting back to JSON.
Examples: - XMLSerializer() - Constructor for class net.sf.json.xml.XMLSerializer
-
Creates a new XMLSerializer with default options.
objectName
: 'o'arrayName
: 'a'elementName
: 'e'typeHinstEnabled
: truetypeHinstCompatibility
: truenamespaceLenient
: falseexpandableProperties
: []skipNamespaces
: falseremoveNameSpacePrefixFromElement
: falsetrimSpaces
: false
_
- _processValue(Object, JsonConfig) - Method in class net.sf.json.JSONArray
- _processValue(Object, JsonConfig) - Method in class net.sf.json.JSONObject
All Classes All Packages