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

JSONArray net::sf::json::JSONArray::element ( int  index,
Map  value 
) [inline]

Put a value in the JSONArray, where the value will be a JSONObject which is produced from a Map.

Parameters:
index The subscript.
value The Map value.
Returns:
this.
Exceptions:
JSONException If the index is negative or if the the value is an invalid number.

Definition at line 1537 of file JSONArray.java.

References element().

                                                    {
      return element( index, value, new JsonConfig() );
   }


Generated by  Doxygen 1.6.0   Back to index