# JSON-java (org.json)

> The reference JSON implementation for Java, in the public domain

Source: https://talira.ai/catalog/json-java-org-json-q1cbb2tt
Every listing: https://talira.ai/catalog.md

- Kind: Open source
- Types: Library
- Categories: [developer tools / parsing / json](https://talira.ai/categories/developer-tools/parsing/json), [languages / java](https://talira.ai/categories/languages/java)
- Licence: public domain[^2]
- Pricing: Free and open source[^2]
- Free tier: yes[^2]
- Backed by: [Sean Leary](https://talira.ai/orgs/sean-leary.md)

JSON-java, the org.json package, is a reference implementation of JSON for Java: it parses JSON documents into Java objects (JSONObject, JSONArray) and generates JSON from them, and it can convert between JSON and XML, HTTP headers, cookies and CDL. It has no external dependencies, aims for strict adherence to the JSON specification and backward compatibility, and runs on Java 1.6 to 25. The code is in the public domain. The project is in a maintenance phase, so the changes it accepts are limited.

## Links

- Website: https://stleary.github.io/JSON-java/index.html
- GitHub: https://github.com/stleary/JSON-java
- Docs: https://javadoc.io/doc/org.json/json

## Problems it solves

- parse a JSON string into objects in plain Java without pulling in a framework
- convert XML to JSON in Java
- a small JSON library for an old Java version

## Features

- parse and generate JSON with JSONObject and JSONArray
- convert between JSON and XML, HTTP headers, cookies and CDL
- no external dependencies
- runs on Java 1.6 to 25

## Limitations

- In a maintenance phase: only limited changes are accepted[^1]

## Trust

Overall: 0.61 out of 1.
Signals: maintenance 0.81, adoption 0.73, momentum 0.43, community 0.86, backing 0.30, extensibility 0.00.

- last commit 8 days ago
- 32 commits in the last 90 days
- latest release 20260814 3 months ago
- 4.7k GitHub stars
- 139 contributors
- backed by Sean Leary

## Alternatives

- [FASTJSON 2](https://talira.ai/catalog/fastjson-2-bbdzeh74.md): High-performance JSON library for Java, the successor to fastjson
- [Gson](https://talira.ai/catalog/gson-gym31c30.md): Google's Java library for converting objects to and from JSON
- [Jackson](https://talira.ai/catalog/jackson-4j3s0grs.md): The Java JSON library: a suite of data-processing tools for Java and the JVM
- [json](https://talira.ai/catalog/json-r9196zbp.md): Ruby's JSON parser and generator, shipped with Ruby as a default gem
- [Jayway JsonPath](https://talira.ai/catalog/jayway-jsonpath-1r1563tt.md): Query and update JSON documents in Java with XPath-like JsonPath expressions
- [Moshi](https://talira.ai/catalog/moshi-6f1zqsd4.md): A modern JSON library for Android, Java and Kotlin

## Sources

[^1]: https://github.com/stleary/JSON-java/blob/master/README.md (checked 28 Nov 2026)
[^2]: https://github.com/stleary/JSON-java/blob/master/LICENSE (checked 28 Nov 2026)
