程序包 com.sh.json


package com.sh.json
  • 说明
    Base class for JSONObject and JSONArray.
    Marker interface, identifies a valid JSON value.
    A JSON value may be a JSONObject, a JSONArray or a JSONNull.
    A JSONArray is an ordered sequence of values
    Utility class that helps configuring the serialization process.
    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.
    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.
    The JSONString interface allows a toJSONString() method so that a class can change the behavior of JSONObject.toString(), JSONArray.toString(), and JSONWriter.value(Object).