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

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

Make a JSON text of this JSONArray. For compactness, no unnecessary whitespace is added. If it is not possible to produce a syntactically correct JSON text then null will be returned instead. This could occur if the array contains an invalid number.

Warning: This method assumes that the data structure is acyclical.

a printable, displayable, transmittable representation of the array.

Definition at line 2384 of file JSONArray.java.

References join().

Referenced by toString().

         return '[' + join( "," ) + ']';
      }catch( Exception e ){
         return null;

Generated by  Doxygen 1.6.0   Back to index