All Classes and Interfaces
Class
Description
Base class for JSONObject and JSONArray.
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.
The JSON spec forbides cycles in a hierarchy and most parsers will raise and error when a cycle is detected.
A cycle detection strategy that prevents any mention of the possible
conflict from appearing.
Base implementation for DefaultDefaultValueProcessor.
Defines the default value for a type when its value is null.
Base class for finding a matching DefaultValueProcessor.
DEFAULT - matches the target class with equals().
DEFAULT - matches the target class with equals().
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.
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.
JDK 1.4+ RegexpMatcher implementation.
Transforms a java.util.Date into a JSONObject ideal for JsDate conversion.
Example:
Example:
Transforms a java.util.Date property into a JSONObject ideal for JsDate
conversion
Marker interface, identifies a valid JSON value.
A JSON value may be a
A JSON value may be a
JSONObject
, a JSONArray
or a
JSONNull
.A JSONArray is an ordered sequence of values.
Provides assertions on equality for JSON strings and JSON types.
Base interface for custom serialization per Bean.
Base class for finding a matching JsonBeanProcessor.
DEFAULT - matches the target class with equals().
DEFAULT - matches the target class with equals().
JSONBuilder provides a quick and convenient way of producing JSON text.
Utility class that helps configuring the serialization process.
Defines the contract to handle JsonEvents when building an object or array.
The JSONException is thrown when things are amiss.
JSONFunction represents a javaScript function's text.
JSONNull is equivalent to the value that JavaScript calls null, whilst Java's
null is equivalent to the value that JavaScript calls undefined.
A JSONObject is an unordered collection of name/value pairs.
Uses
PropertySetStrategy
instead of the normal set method.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.
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.
The
JSONString
interface allows a toJSONString()
method so that a class can change the behavior of
JSONObject.toString()
, JSONArray.toString()
,
and JSONWriter.value(
Object)
.JSONStringer provides a quick and convenient way of producing JSON text.
A JSONTokener takes a source string and extracts characters and tokens from
it.
Provides useful methods on java objects and JSON values.
Base interface for custom serialization per property.
Base class for finding a matching JsonValueProcessor.
DEFAULT - matches the target class with equals().
DEFAULT - matches the target class with equals().
Verifies if a value is a valid JSON value.
Base class for creating Bean instances.
DEFAULT - calls Class.newInstance().
DEFAULT - calls Class.newInstance().
Base class for finding a matching property exlucsion.
DEFAULT - matches the target class with equals().
DEFAULT - matches the target class with equals().
Base interface for mutating property names of a Bean.
Base class for finding a matching PropertyNameProcessor.
DEFAULT - matches the target class with equals().
DEFAULT - matches the target class with equals().
Defines a custom setter to be used when setting object values.
Specify with JsonConfig.setJsonPropertySetter().
Specify with JsonConfig.setJsonPropertySetter().
Abstraction for regexp handling.
Convenience utility for working withRegexpMatcher.
Defines base implementations for preventing WebHijack in AJAX applications.
Provides useful methods for working with JSON and web.
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:
When transforming JSONObject and JSONArray instances to XML, this class will add hints for converting back to JSON.
Examples: