question: static String valueToString ( Object value ) throws JSONException { if ( value == null ) { return "null" ; } if ( value instanceof Number ) { return numberToString ( ( Number ) value ) ; } if ( value instanceof Boolean || value instanceof JSONObject || value instanceof JSONArray ) { return value . toString ( ) ; } return quote ( value . toString ( ) ) ; }
target:  Make a JSON text of an object value. <p> Warning: This method assumes that the data structure is acyclical.