Skip to content

JSON Java for Android developers

Sean Leary edited this page Sep 25, 2016 · 14 revisions

At the present time, JSON-Java maintains a level of Java JDK compatibility that allows it to be used by Android developers. This is not a project commitment, but it will be maintained for as long as possible.

The Android SDK already includes a subset of JSON-Java functionality. The Android package name is org.json, which conflicts with this project. If all you want is basic, no-frills functionality, with no recent bug fixes, then just use this package.

You may want to include the JSON-Java lib for functionality only found in JSON-Java. For example, XML-JSON transformations provided by XML.java and other classes. This may result in run time errors due to the conflict between the built-in org.json package and the JSON-Java org.json package. In this case, you may wish to refactor the JSON-Java source and build/import a local version of JSON-Java with a different package name.