Package net.sf.json.util
package net.sf.json.util
Miscellaneous utilities
-
ClassDescriptionBase 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.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 JavaIdentifierPart chars (including whitespace). UNDERSCORE: replaces sequences of non JavaIdentifierPart chars (including whitespace) with single '_' separators. WHITESPACE: deletes non JavaIdentifierPart chars (including whitespace). STRICT: always throws a JSONException, does not perform transformation.JSONBuilder provides a quick and convenient way of producing JSON text.Defines the contract to handle JsonEvents when building an object or array.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 class for creating Bean instances.
DEFAULT - calls Class.newInstance().Base class for finding a matching property exlucsion.
DEFAULT - matches the target class with equals().Defines a custom setter to be used when setting object values.
Specify with JsonConfig.setJsonPropertySetter().