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

JSONArray net::sf::json::JSONArray::element ( Map  value,
JsonConfig  jsonConfig 
) [inline]

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

Parameters:
value A Map value.
Returns:
this.

Definition at line 1721 of file JSONArray.java.

References element(), and elements.

                                                                {
      if( value instanceof JSONObject ){
         elements.add( value );
         return this;
      }else{
         return element( JSONObject.fromObject( value, jsonConfig ) );
      }
   }


Generated by  Doxygen 1.6.0   Back to index