| Class | Line # | Actions | |||
|---|---|---|---|---|---|
| JSONString | 11 | 0 | 0 |
| 1 | package org.json; | |
| 2 | ||
| 3 | /** | |
| 4 | * The <code>JSONString</code> interface allows a <code>toJSONString()</code> | |
| 5 | * method so that a class can change the behavior of | |
| 6 | * <code>JSONObject.toString()</code>, <code>JSONArray.toString()</code>, and | |
| 7 | * <code>JSONWriter.value(</code>Object<code>)</code>. The | |
| 8 | * <code>toJSONString</code> method will be used instead of the default behavior | |
| 9 | * of using the Object's <code>toString()</code> method and quoting the result. | |
| 10 | */ | |
| 11 | public interface JSONString | |
| 12 | { | |
| 13 | /** | |
| 14 | * The <code>toJSONString</code> method allows a class to produce its own JSON | |
| 15 | * serialization. | |
| 16 | * | |
| 17 | * @return A strictly syntactically correct JSON text. | |
| 18 | */ | |
| 19 | public String toJSONString(); | |
| 20 | } |