Skip to content

Commit 5b67330

Browse files
author
John J. Aylward
committed
2 parents 4830259 + 9950350 commit 5b67330

File tree

4 files changed

+26
-6
lines changed

4 files changed

+26
-6
lines changed

JSONArray.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1083,14 +1083,16 @@ public Writer write(Writer writer) throws JSONException {
10831083
* <p>
10841084
* Warning: This method assumes that the data structure is acyclical.
10851085
*
1086+
* @param writer
1087+
* Writes the serialized JSON
10861088
* @param indentFactor
10871089
* The number of spaces to add to each level of indentation.
10881090
* @param indent
10891091
* The indention of the top level.
10901092
* @return The writer.
10911093
* @throws JSONException
10921094
*/
1093-
Writer write(Writer writer, int indentFactor, int indent)
1095+
public Writer write(Writer writer, int indentFactor, int indent)
10941096
throws JSONException {
10951097
try {
10961098
boolean commanate = false;

JSONObject.java

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1781,10 +1781,16 @@ static final void indent(Writer writer, int indent) throws IOException {
17811781
* <p>
17821782
* Warning: This method assumes that the data structure is acyclical.
17831783
*
1784+
* @param writer
1785+
* Writes the serialized JSON
1786+
* @param indentFactor
1787+
* The number of spaces to add to each level of indentation.
1788+
* @param indent
1789+
* The indention of the top level.
17841790
* @return The writer.
17851791
* @throws JSONException
17861792
*/
1787-
Writer write(Writer writer, int indentFactor, int indent)
1793+
public Writer write(Writer writer, int indentFactor, int indent)
17881794
throws JSONException {
17891795
try {
17901796
boolean commanate = false;

README

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -61,14 +61,26 @@ JSONML.java: JSONML provides support for converting between JSONML and XML.
6161

6262
XMLTokener.java: XMLTokener extends JSONTokener for parsing XML text.
6363

64-
Unit tests are maintained in a separate project. Contributing developers can test JSON-java pull requests with the code in this project: https://github.com/stleary/JSON-Java-unit-test
64+
Unit tests are maintained in a separate project. Contributing developers can test
65+
JSON-java pull requests with the code in this project:
66+
https://github.com/stleary/JSON-Java-unit-test
67+
68+
Numeric types in this package comply with ECMA-404: The JSON Data Interchange Format
69+
(http://www.ecma-international.org/publications/files/ECMA-ST/ECMA-404.pdf) and
70+
RFC 7159: The JavaScript Object Notation (JSON) Data Interchange Format
71+
(https://tools.ietf.org/html/rfc7159#section-6).
72+
This package fully supports Integer, Long, and Double Java types. Partial support
73+
for BigInteger and BigDecimal values in JSONObject and JSONArray objects is provided
74+
in the form of get(), opt(), and put() API methods.
6575

6676
Release history:
6777

6878
20151123 JSONObject and JSONArray initialization with generics. Contains the
6979
latest code as of 23 Nov, 2015.
7080

71-
20150729 Checkpoint for Maven central repository release. Contains the latest code as of 29 July, 2015.
81+
20150729 Checkpoint for Maven central repository release. Contains the latest code
82+
as of 29 July, 2015.
7283

73-
JSON-java releases can be found by searching the Maven repository for groupId "org.json" and artifactId "json". For example:
84+
JSON-java releases can be found by searching the Maven repository for groupId "org.json"
85+
and artifactId "json". For example:
7486
https://search.maven.org/#search%7Cgav%7C1%7Cg%3A%22org.json%22%20AND%20a%3A%22json%22

XML.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ of this software and associated documentation files (the "Software"), to deal
3131
* covert a JSONObject into an XML text.
3232
*
3333
* @author JSON.org
34-
* @version 2015-12-09
34+
* @version 2016-01-01
3535
*/
3636
@SuppressWarnings("boxing")
3737
public class XML {

0 commit comments

Comments
 (0)