Logo Search packages:      
Sourcecode: libjson-java version File versions

static JSONArray net::sf::json::JSONArray::fromObject ( Object  object  )  [inline, static]

Creates a JSONArray.
Inspects the object type to call the correct JSONArray factory method. Accepts JSON formatted strings, arrays, Collections and Enums.

JSONException if the object can not be converted to a proper JSONArray.

Definition at line 126 of file JSONArray.java.

Referenced by net::sf::json::test::JSONAssert::assertEquals().

      return fromObject( object, new JsonConfig() );

Generated by  Doxygen 1.6.0   Back to index