PageRenderTime 51ms CodeModel.GetById 30ms app.highlight 1ms RepoModel.GetById 19ms app.codeStats 0ms

/src/org/json/JSONString.java

http://github.com/nddrylliog/ooc
Java | 18 lines | 4 code | 0 blank | 14 comment | 0 complexity | 4ad738d9b0a2a4a10dda3d179d02bd60 MD5 | raw file
 1package org.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 */
10public interface JSONString {
11	/**
12	 * The <code>toJSONString</code> method allows a class to produce its own JSON 
13	 * serialization. 
14	 * 
15	 * @return A strictly syntactically correct JSON text.
16	 */
17	public String toJSONString();
18}