增加 welcome-file 以支持 Tomcat 7 下根路径可以被 map 到 LoginServlet。
[jibu.git] / plugins / jibu-json / src / main / java / org / gaixie / jibu / json / JSONString.java
blobfcc20f4f2d2a8e249e158334e3e3879e354b6ca4
1 package org.gaixie.jibu.json;
2 /**
3 * The <code>JSONString</code> interface allows a <code>toJSONString()</code>
4 * method so that a class can change the behavior of
5 * <code>JSONObject.toString()</code>, <code>JSONArray.toString()</code>,
6 * and <code>JSONWriter.value(</code>Object<code>)</code>. The
7 * <code>toJSONString</code> method will be used instead of the default behavior
8 * of using the Object's <code>toString()</code> method and quoting the result.
9 */
10 public interface JSONString {
11 /**
12 * The <code>toJSONString</code> method allows a class to produce its own JSON
13 * serialization.
15 * @return A strictly syntactically correct JSON text.
17 public String toJSONString();