source: josm/trunk/src/org/json/JSONString.java@ 6753

Last change on this file since 6753 was 6484, checked in by Don-vip, 11 years ago

see #7307, fix #8474 - use org.json as lightweight internal json library (already being used by several plugins)

File size: 708 bytes
Line 
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}
Note: See TracBrowser for help on using the repository browser.