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

String net::sf::json::JSONArray::toString ( int  indentFactor  )  [inline]

Make a prettyprinted JSON text of this JSONArray. Warning: This method assumes that the data structure is acyclical.

Parameters:
indentFactor The number of spaces to add to each level of indentation.
Returns:
a printable, displayable, transmittable representation of the object, beginning with [ (left bracket) and ending with ] (right bracket).
Exceptions:
JSONException 

Implements net::sf::json::JSON.

Definition at line 2404 of file JSONArray.java.

References toString().

                                              {
      if( indentFactor == 0 ){
         return this.toString();
      }
      return toString( indentFactor, 0 );
   }


Generated by  Doxygen 1.6.0   Back to index