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

JSONObject net::sf::json::JSONArray::optJSONObject ( int  index  )  [inline]

Get the optional JSONObject associated with an index. Null is returned if the key is not found, or null if the index has no value, or if the value is not a JSONObject.

index The index must be between 0 and size() - 1.
A JSONObject value.

Definition at line 2231 of file JSONArray.java.

References opt().

      Object o = opt( index );
      return o instanceof JSONObject ? (JSONObject) o : null;

Generated by  Doxygen 1.6.0   Back to index