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

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

Get the string associated with an index.

index The index must be between 0 and size() - 1.
A string value.
JSONException If there is no value for the index.

Definition at line 2025 of file JSONArray.java.

Referenced by net::sf::json::JSONObject::toJSONArray(), and toJSONObject().

      Object o = get( index );
      if( o != null ){
         return o.toString();
      throw new JSONException( "JSONArray[" + index + "] not found." );

Generated by  Doxygen 1.6.0   Back to index