JSON-java
JSON-java copied to clipboard
A reference implementation of a JSON package in Java.
org.json.JSONObject#toString(int) has an indentFactor parameter, but org.json.XML.toString does not have an indentFactor parameter
The cycle detection introduced in #632 / #645 doesn't handle cycles that involved collections. The following example still results in a `StackOverflowError`: ```java import java.util.Collections; import java.util.List; import org.json.JSONObject; class...
Unit tests should check various number formats (hex, scientific/exponent, floating point hex, octal, standard decimal) and make sure we have coverage. Checks should be performed when parsing JSON documents and...
Review the readme and wiki to ensure there is sufficient explanation for how to do XML / JSON conversions.
Currently we have an `accumulate` method on `JSONObject`, however, we don't have an easy way to get back out a consistent value (i.e. JSONArray). One area where this is most...
Oracle itself has ended support for Java8 and many companies are starting to move off of 8 and onto at least 11 (the next [and current] LTS after 8). Oracle...
JSONPointer encodes quotes as \\" https://github.com/stleary/JSON-java/blob/7abd89b4bcc321152c178af5504da7ea4ac66693/src/main/java/org/json/JSONPointer.java#L271 However I can't find a requirement for that in https://tools.ietf.org/html/rfc6901#section-3 or elsewhere. It causes a conflict in an application that expects the canonical form...
My current use case is to programmatically edit [app.json](https://docs.expo.io/versions/latest/config/app/). This project config file is usually manually edited. Another example would be [package.json](https://docs.npmjs.com/cli/v7/configuring-npm/package-json). It typically has only a single key 'expo'....
- in the code no doubt. But I just spent half an hour **not** finding how to get a named string attribute from a JSONObject... A 'getting started' entry about...
I had a look at the pipeline definition and I am somewhat confused at the fact that especially the Java 1.6 build works as expected. I would have expected a...