Uses of Interface
net.sf.json.JSON

Packages that use JSON
Package
Description
The core of the library
  • Uses of JSON in net.sf.json

    Classes in net.sf.json that implement JSON
    Modifier and Type
    Class
    Description
    final class 
    A JSONArray is an ordered sequence of values.
    final class 
    JSONNull is equivalent to the value that JavaScript calls null, whilst Java's null is equivalent to the value that JavaScript calls undefined.
    final class 
    A JSONObject is an unordered collection of name/value pairs.
    Methods in net.sf.json that return JSON
    Modifier and Type
    Method
    Description
    static JSON
    JSONSerializer.toJSON(Object object)
    Creates a JSONObject, JSONArray or a JSONNull from object.
    Accepts JSON formatted strings, Maps, arrays, Collections, DynaBeans and JavaBeans.
    static JSON
    JSONSerializer.toJSON(Object object, JsonConfig jsonConfig)
    Creates a JSONObject, JSONArray or a JSONNull from object.
    Accepts JSON formatted strings, Maps, arrays, Collections, DynaBeans and JavaBeans.
    Methods in net.sf.json with parameters of type JSON
    Modifier and Type
    Method
    Description
    static Object
    JSONSerializer.toJava(JSON json)
    Transform a JSON value to a java object.
    Depending on the configured values for conversion this will return a DynaBean, a bean, a List, or and array.
    static Object
    JSONSerializer.toJava(JSON json, JsonConfig jsonConfig)
    Transform a JSON value to a java object.
    Depending on the configured values for conversion this will return a DynaBean, a bean, a List, or and array.