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