Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit dd38c41

Browse filesBrowse files
whitespace
1 parent 03fa545 commit dd38c41
Copy full SHA for dd38c41

File tree

Expand file treeCollapse file tree

1 file changed

+18
-18
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

1 file changed

+18
-18
lines changed
Open diff view settings
Collapse file

‎JSONString.java‎

Copy file name to clipboard
+18-18Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
1-
package 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-
*/
10-
public 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-
}
1+
package 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+
*/
10+
public 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+
}

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.