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

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

Get the JSONArray associated with an index.

index The index must be between 0 and size() - 1.
A JSONArray value.
JSONException If there is no value for the index. or if the value is not a JSONArray

Definition at line 1975 of file JSONArray.java.

      Object o = get( index );
      if( o != null && o instanceof JSONArray ){
         return (JSONArray) o;
      throw new JSONException( "JSONArray[" + index + "] is not a JSONArray." );

Generated by  Doxygen 1.6.0   Back to index