All Classes
-
All Classes Interface Summary Class Summary Exception Summary Class Description AbstractJSON Base class for JSONObject and JSONArray.AbstractJSON.CycleSet AbstractJSON.WritingVisitor AndPropertyFilter CompositePropertyFilter CycleDetectionStrategy 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.LenientCycleDetectionStrategy CycleDetectionStrategy.LenientNoRefCycleDetectionStrategy A cycle detection strategy that prevents any mention of the possible conflict from appearing.CycleDetectionStrategy.StrictCycleDetectionStrategy DefaultDefaultValueProcessor Base implementation for DefaultDefaultValueProcessor.DefaultValueProcessor Defines the default value for a type when its value is null.DefaultValueProcessorMatcher Base class for finding a matching DefaultValueProcessor.
DEFAULT - matches the target class with equals().DefaultValueProcessorMatcher.DefaultDefaultValueProcessorMatcher EnumMorpher FalsePropertyFilter JavaIdentifierTransformer 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.CamelCaseJavaIdentifierTransformer JavaIdentifierTransformer.NoopJavaIdentifierTransformer JavaIdentifierTransformer.StrictJavaIdentifierTransformer JavaIdentifierTransformer.UnderscoreJavaIdentifierTransformer JavaIdentifierTransformer.WhiteSpaceJavaIdentifierTransformer JdkRegexpMatcher JDK 1.4+ RegexpMatcher implementation.JsDateJsonBeanProcessor Transforms a java.util.Date into a JSONObject ideal for JsDate conversion.
Example:JsDateJsonValueProcessor Transforms a java.util.Date property into a JSONObject ideal for JsDate conversionJSON Marker interface, identifies a valid JSON value.
A JSON value may be aJSONObject
, aJSONArray
or aJSONNull
.JSONArray A JSONArray is an ordered sequence of values.JSONAssert Provides assertions on equality for JSON strings and JSON types.JsonBeanProcessor Base interface for custom serialization per Bean.JsonBeanProcessorMatcher Base class for finding a matching JsonBeanProcessor.
DEFAULT - matches the target class with equals().JsonBeanProcessorMatcher.DefaultJsonBeanProcessorMatcher JSONBuilder JSONBuilder provides a quick and convenient way of producing JSON text.JsonConfig Utility class that helps configuring the serialization process.JsonEventListener Defines the contract to handle JsonEvents when building an object or array.JSONException The JSONException is thrown when things are amiss.JSONFunction JSONFunction represents a javaScript function's text.JsonGroovyBuilder A Groovy builder for JSON values.JSONNull JSONNull is equivalent to the value that JavaScript calls null, whilst Java's null is equivalent to the value that JavaScript calls undefined.JSONObject A JSONObject is an unordered collection of name/value pairs.JSONObject.FieldProperty JSONObject.MethodProperty JSONObject.Property JSONObject.PropertyOnMap JSONObject.PropertySetterStrategyDecorator UsesPropertySetStrategy
instead of the normal set method.JSONSerializer 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.JsonSlurper A Helper class modeled after XmlSlurperJSONString TheJSONString
interface allows atoJSONString()
method so that a class can change the behavior ofJSONObject.toString()
,JSONArray.toString()
, andJSONWriter.value(
Object)
.JSONStringer JSONStringer provides a quick and convenient way of producing JSON text.JSONTokener A JSONTokener takes a source string and extracts characters and tokens from it.JSONTypes JSONUtils Provides useful methods on java objects and JSON values.JsonValueProcessor Base interface for custom serialization per property.JsonValueProcessorMatcher Base class for finding a matching JsonValueProcessor.
DEFAULT - matches the target class with equals().JsonValueProcessorMatcher.DefaultJsonValueProcessorMatcher JsonVerifier Verifies if a value is a valid JSON value.MappingPropertyFilter NewBeanInstanceStrategy Base class for creating Bean instances.
DEFAULT - calls Class.newInstance().NewBeanInstanceStrategy.DefaultNewBeanInstanceStrategy NotPropertyFilter OrPropertyFilter PropertyExclusionClassMatcher Base class for finding a matching property exlucsion.
DEFAULT - matches the target class with equals().PropertyExclusionClassMatcher.DefaultPropertyExclusionClassMatcher PropertyFilter PropertyNameProcessor Base interface for mutating property names of a Bean.PropertyNameProcessorMatcher Base class for finding a matching PropertyNameProcessor.
DEFAULT - matches the target class with equals().PropertyNameProcessorMatcher.DefaultPropertyNameProcessorMatcher PropertySetStrategy Defines a custom setter to be used when setting object values.
Specify with JsonConfig.setJsonPropertySetter().PropertySetStrategy.DefaultPropertySetStrategy RegexpMatcher Abstraction for regexp handling.RegexpUtils Convenience utility for working withRegexpMatcher.TruePropertyFilter WebHijackPreventionStrategy Defines base implementations for preventing WebHijack in AJAX applications.WebHijackPreventionStrategy.CommentWebHijackPreventionStrategy WebHijackPreventionStrategy.InfiniteLoopWebHijackPreventionStrategy WebUtils Provides useful methods for working with JSON and web.XMLSerializer 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.CustomElement