Package net.sf.json
The core of the library
-
Interface Summary Interface Description AbstractJSON.WritingVisitor JSON Marker interface, identifies a valid JSON value.
A JSON value may be aJSONObject
, aJSONArray
or aJSONNull
.JSONObject.Property JSONString TheJSONString
interface allows atoJSONString()
method so that a class can change the behavior ofJSONObject.toString()
,JSONArray.toString()
, andJSONWriter.value(
Object)
. -
Class Summary Class Description AbstractJSON Base class for JSONObject and JSONArray.AbstractJSON.CycleSet JSONArray A JSONArray is an ordered sequence of values.JsonConfig Utility class that helps configuring the serialization process.JSONFunction JSONFunction represents a javaScript function's text.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.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. -
Exception Summary Exception Description JSONException The JSONException is thrown when things are amiss.