Loading ...
Sorry, an error occurred while loading the content.


Expand Messages
  • Douglas Crockford
    Aug 27, 2007
    • 0 Attachment
      New constructors for JSONObject:

      JSONObject(Object bean)

      Make a new JSONObject from the getter methods of a bean.

      JSONObject(Object object, String names[])

      Make a new JSONObject using an array of keys to extract
      values from an Object.

      New constructor for JSONArray:

      JSONArray(Object array)

      Make a new JSONArray from a Java array.

      The toJSONString methods will attempt to produce JSON text for values
      of type array, Collection, Map.