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

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

Put or replace an object value in the JSONArray. If the index is greater than the length of the JSONArray, then null elements will be added as necessary to pad it out.

index The subscript.
value An object value. The value should be a Boolean, Double, Integer, JSONArray, JSONObject, JSONFunction, Long, String, JSONString or the JSONNull object.
JSONException If the index is negative or if the the value is an invalid number.

Definition at line 1583 of file JSONArray.java.

References element().

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

Generated by  Doxygen 1.6.0   Back to index