Download the ZIP file from this URL and extract it to get the Jar. Add the Jar to your build path. To check the available classes in this Jar use this URL.

To Add this Jar to your build path Right click the Project > Build Path > Configure build path> Select Libraries tab > Click Add External Libraries > Select the Jar file Download

I hope this will solve your problem

Answer from Ramkumar Murugadoss on Stack Overflow
🌐
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
🌐
TutorialsPoint
tutorialspoint.com › org_json › org_json_quick_guide.htm
Org.Json - Quick Guide
Download the latest version of org.json jar file from org.json @ MVNRepository.
🌐
Maven Repository
mvnrepository.com › artifact › org.json › json
Maven Repository: org.json » json
August 15, 2026 - 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.
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.

🌐
Stleary
stleary.github.io › JSON-java › index.html
Package org.json
JavaScript is disabled on your browser · Frame Alert · This document is designed to be viewed using the frames feature. If you see this message, you are using a non-frame-capable web client. Link to Non-frame version
🌐
GitHub
github.com › stleary › JSON-java
GitHub - stleary/JSON-java: A reference implementation of a JSON package in Java. · GitHub
jar cf json-java.jar org/json/*.class · Compile a program that uses the jar (see example code below) javac -cp .;json-java.jar Test.java (Windows) javac -cp .:json-java.jar Test.java (Unix Systems) Test file contents · import org.json.JSONObject; public class Test { public static void main(String args[]){ JSONObject jo = new JSONObject("{ \"abc\" : \"def\" }"); System.out.println(jo); } } Execute the Test file ·
Author: stleary
Find elsewhere
🌐
Google Groups
groups.google.com › g › comp.lang.java.help › c › 8rKxFs5CFAI
where to download org.json package...
"If you're using Java servlets, the org.json package, hosted at json.org, is a simple choice. In this case, you'd download json.zip from the JSON Web site..."
🌐
Maven Repository
mvnrepository.com › artifact › org.json › json › 20140107
Maven Repository: org.json » json » 20140107
January 7, 2014 - 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.
Published: Jan 07, 2014
Version: 20140107
🌐
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>20260814</version> </dependency>
🌐
Jarcasting
jarcasting.com › artifacts › org.json › json › 20140107
org.json » json » 20140107 - jar download | JarCasting
Download package files of org.json » json » 20140107 and jars with java source files
🌐
Coderanch
coderanch.com › t › 666886 › java › package-org-json-exist
package org.json does not exist [Solved] (Beginning Java forum at Coderanch)
Here are some details: $ echo $CLASSPATH /usr/share/java $ ll /usr/share/java/json* -rw-r--r-- 1 root root 49176 Jun 12 22:31 /usr/share/java/json-20160212.jar $ jar tf /usr/share/java/json-20160212.jar META-INF/MANIFEST.MF META-INF/ META-INF/maven/ META-INF/maven/org.json/ META-INF/maven/org.json/json/ META-INF/maven/org.json/json/pom.properties META-INF/maven/org.json/json/pom.xml org/ org/json/ org/json/CDL.class org/json/Cookie.class org/json/CookieList.class org/json/HTTP.class org/json/HTTPTokener.class org/json/JSONArray.class org/json/JSONException.class org/json/JSONML.class org/json/
🌐
Jar-Download
jar-download.com › home › org.json › json › 20180813 › source code › jsonobject.java
org.json.JSONObject Maven / Gradle / Ivy
org.json.JSONObject maven / gradle build tool code. The class is part of the package ➦ Group: org.json ➦ Artifact: json ➦ Version: 20180813
🌐
SourceForge
sourceforge.net › projects › json-java.mirror
JSON-java download | SourceForge.net
August 14, 2026 - org.json jar file · org..json · json-java · json · org.json-1.6-20240205.jar(js=n-java) open office java · java para windows · Related Business Categories · JavaScript Libraries ·
🌐
TutorialsPoint
tutorialspoint.com › org_json › org_json_environment.htm
Org.Json - Environment Setup
Download the latest version of org.json jar file from org.json @ MVNRepository.
🌐
GitHub
gist.github.com › mcSw4p › ab37318dbd394f4b5cc5de5d6d3f6ab3
JSON Simple guide · GitHub
Download ZIP · JSON Simple guide · Raw · 001-File-Read-Write.md · [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");