001
002/**
003 * The <code>JSONString</code> interface allows a <code>toJSONString()</code> 
004 * method so that a class can change the behavior of 
005 * <code>JSONObject.toString()</code>, <code>JSONArray.toString()</code>,
006 * and <code>JSONWriter.value(</code>Object<code>)</code>. The 
007 * <code>toJSONString</code> method will be used instead of the default behavior 
008 * of using the Object's <code>toString()</code> method and quoting the result.
009 */
010package sec.web.json.utilities;
011
012public interface JSONString {
013        /**
014         * The <code>toJSONString</code> method allows a class to produce its own JSON 
015         * serialization. 
016         * 
017         * @return A strictly syntactically correct JSON text.
018         */
019        public String toJSONString();
020}