Probably your simple json.jar file isn't in your classpath.

Answer from Arun Manivannan on Stack Overflow
🌐
Google Code
code.google.com › archive › p › json-simple › downloads
Google Code Archive - Long-term storage for Google Code Project Hosting.
Archive · Skip to content · The Google Code Archive requires JavaScript to be enabled in your browser · Google · About Google · Privacy · Terms
🌐
Maven Repository
mvnrepository.com › artifact › com.googlecode.json-simple › json-simple › 1.1
Maven Repository: com.googlecode.json-simple » json-simple » 1.1
Home » com.googlecode.json-simple » json-simple » 1.1 · A simple Java toolkit for JSON · Note: There is a new version for this artifact · Maven · Gradle · SBT · Mill · Ivy · Grape · Leiningen · Buildr · Scope: compile · test · provided · runtime · Scope: compile ·
🌐
Cliftonlabs
cliftonlabs.github.io › json-simple
json-simple
Download json-simple's latest release jar, javadocs, and source.
🌐
Maven Repository
mvnrepository.com › artifact › org.json › json
Maven Repository: org.json » json
December 24, 2025 - JSON is a light-weight, language independent, data interchange format. See http://www.JSON.org/ The files in this package implement JSON encoders/decoders in Java. It also includes the capability to convert between JSON and XML, HTTP headers, Cookies, and CDL.
🌐
SourceForge
sourceforge.net › projects › json-java.mirror › files › 20240205 › org.json-1.6-20240205.jar
Download org.json-1.6-20240205.jar (JSON-java)
org.json-1.6-20240205.jar(js=n-java) org.json · llm for java developers · java projects · jackson-databind · jackson · Related Business Categories · JavaScript Libraries · × · Thanks for helping keep SourceForge clean. X · This download has been scanned for malware.
🌐
GitHub
gist.github.com › mcSw4p › ab37318dbd394f4b5cc5de5d6d3f6ab3
JSON Simple guide · GitHub
[maven | .jar(direct) | .jar] // JSON Simple imports import org.json.simple.JSONArray; import org.json.simple.JSONObject; import org.json.simple.parser.JSONParser; import org.json.simple.parser.ParseException; File jsonFile = new File("/hello.json"); // Do with as you please /* * Simple key value pairs */ JSONParser parser = new JSONParser(); try{ JSONObject jObj = (JSONObject) parser.parse(new FileReader(jsonFile)); } catch (IOException | ParseException e) { e.printStackTrace(); } String value = (String) jObj.get("world"); long delay = (Long) jObj.get("delay"); boolean debug = (Boolean) jObj.
🌐
GeeksforGeeks
geeksforgeeks.org › java › what-is-json-java-org-json
What is JSON-Java (org.json)? - GeeksforGeeks
July 17, 2022 - // Importing JSON simple library import org.json.simple.JSONObject; // Creating a public class public class JsonEncodeExample { // Calling the main method public static void main(String[] args) { // Creating an object of JSON class JSONObject geekWriterObject = new JSONObject(); // Entering the values using the created object geekWriterObject.put("geekWriterId", new Integer(100)); geekWriterObject.put("geekWritterName", "GeekAuthor1"); geekWriterObject.put("status", new Boolean(true)); geekWriterObject.put("publishedArticlesIn", "Java,Python"); // Printing the values through the created object System.out.print(geekWriterObject); } }
Find elsewhere
🌐
Jar-Download
jar-download.com › home › com.github.cliftonlabs › json-simple › 2.1.2 › source code
Download json-simple JAR 2.1.2 ➔ With all dependencies!
Java 7+ toolkit to quickly develop RFC 4627 JSON compatible applications. ✓ Download JAR json-simple 2.1.2 ✓ With dependencies ✓ Source of json-simple ☄ One click! ☄
🌐
TutorialsPoint
tutorialspoint.com › org_json › org_json_quick_guide.htm
Org.Json - Quick Guide
org.json or JSON-Java is a simple Java based toolkit for JSON. You can use org.json to encode or decode JSON data. This chapter takes you through the process of setting up Org.Json on Windows and Linux based systems.
🌐
Jar-Download
jar-download.com › home › org.json
Download org.json JAR files with all dependencies
Download org.json JAR files ✓ With dependencies ✓ Documentation ✓ Source code
🌐
Maven Repository
mvnrepository.com › artifact › org.json › json-simple
Maven Repository: org.json » json-simple
Home » org.json » json-simple · JSON Simple · ICM (1) Central · Atlassian External · Atlassian · WSO2 Releases · WSO2 Public · Hortonworks · Mulesoft · JCenter · KtorEAP · Sonatype · 🌐 · DNS Gurus · Free DNS Tools & Analysis ·
🌐
Maven Central
central.sonatype.com › artifact › org.json › json
org.json:json - Maven Central
This is a reference implementation. There are a large number of JSON packages in Java. Perhaps someday the Java community will standardize on one. Until then, choose carefully. ... <dependency> <groupId>org.json</groupId> <artifactId>json</artifactId> <version>20251224</version> </dependency>
🌐
GitHub
github.com › stleary › JSON-java
GitHub - stleary/JSON-java: A reference implementation of a JSON package in Java. · GitHub
import org.json.JSONObject; public class Test { public static void main(String args[]){ JSONObject jo = new JSONObject("{ \"abc\" : \"def\" }"); System.out.println(jo); } }
Starred by 4.7K users
Forked by 2.6K users
Languages   Java
🌐
Javadoc.io
javadoc.io › doc › org.json › json › latest › index.html
json 20251224 javadoc (org.json)
Latest version of org.json:json · https://javadoc.io/doc/org.json/json · Current version 20251224 · https://javadoc.io/doc/org.json/json/20251224 · package-list path (used for javadoc generation -link option) https://javadoc.io/doc/org.json/json/20251224/package-list ·
Top answer
1 of 3
26

As far as I can tell (in December 2013) ...

  • Douglas Crockford's master source repository for "json.org" is now on GitHub - https://github.com/douglascrockford/JSON-java. (The GIT history starts in 2010, and the latest change in "master" is a couple of weeks ago.)

  • Paul Merlin (aka "eskatos") has Mavenized the code: https://github.com/eskatos/org.json-java

  • Binary "org.json" JAR files are "regularly" built from Paul Merlin's tree and pushed to Maven Central. You can find them via the "here" link in Paul's README.md file; see the line above.

  • There are other older (pre-2010) binary releases of the "org.json" JAR file in Maven Central under various guises; review the search results for this link" http://mvnrepository.com/search.html?query=org.json.

The copyright dates in the "org.json" source code don't mean much. They clearly aren't updated when the code is updated. However, Douglas Crockford does update the @version javadoc tags, at least in some commits.

UPDATE (December 2016)

As of some time in 2015, Douglas Crockford has passed ownership of the Github repository to Sean Leary. The old Github URL for the project now redirects to https://github.com/stleary/JSON-java. The project continues to be relatively active.

See also: Where has json.org java library gone?

2 of 3
10

I would recommend using json-simple or one of the other JSON libraries for Java that have developed. This has features the JSON.org API lacks (and I think it will stay that way).

For instance, the json-simple version of JSONObject implements Map and JSONArray implements List. It also has other features, like a SAX-style API.

🌐
Maven Repository
mvnrepository.com › artifact › com.googlecode.json-simple › json-simple › 1.1.1
Maven Repository: com.googlecode.json-simple » json-simple » 1.1.1
March 21, 2012 - org.kitesdk:kite-hadoop-dependencies (20 usages) View all → · 🌐 · DNS Gurus · Free DNS Tools & Analysis · Related books · Unifying Business, Data, and Code: Designing Data Products with JSON Schema · Itelman, Ron, Viotti, Juan Cruz · Designing Dynamic Java Applications With Osgi ·
Published   Mar 21, 2012
Version   1.1.1