Add json jar to your classpath

or use java -classpath json.jar ClassName

Or add this to your maven pom.xml depedencies:

<dependency>
    <groupId>org.json</groupId>
    <artifactId>json</artifactId>
    <version>20090211</version>
</dependency>
Answer from Alya'a Gamal on Stack Overflow
🌐
Maven Repository
mvnrepository.com › artifact › org.json › json
Maven Repository: org.json » json
December 24, 2025 - There are a large number of JSON packages in Java. Perhaps someday the Java community will standardize on one. Until then, choose carefully. ... aar android apache api arm assets build build-system bundle client clojure cloud config cran data database eclipse example extension framework github gradle groovy io ios javascript jvm kotlin library logging maven ...
🌐
Maven Repository
mvnrepository.com › open-source › json-libraries
Maven Repository: JSON Libraries
See http://www.JSON.org/ The files in this package implement JSON encoders/decoders in Java. ... aar android apache api arm assets build build-system bundle client clojure cloud config cran data database eclipse example extension framework github gradle groovy io ios javascript jvm kotlin library logging maven mobile module npm osgi persistence plugin resources rlang sdk server service spring sql starter testing tools ui web webapp
🌐
Maven Repository
mvnrepository.com › artifact › javax.json
Maven Repository: javax.json
aar android apache api arm assets build build-system bundle client clojure cloud config cran data database eclipse example extension framework github gradle groovy io ios javascript jvm kotlin library logging maven mobile module npm osgi persistence plugin resources rlang sdk server service ...
🌐
Maven Repository
mvnrepository.com › artifact › com.googlecode.json-simple › json-simple › 1.1
Maven Repository: com.googlecode.json-simple » json-simple » 1.1
August 12, 2009 - RepositoriesCentralAlfrescoArchiveCloudFlight PluginsGluuGluu OXImcodeInstreamaticKyligence PublicLiferay PublicLocationTech 3rdPMulesoftTerrestrisWSO2 PublicXceptance+12 more ... aar android apache api arm assets build build-system bundle client clojure cloud config cran data database eclipse example extension framework github gradle groovy io ios javascript jvm kotlin library logging maven ...
Published   Aug 12, 2009
Version   1.1
🌐
Maven Central
central.sonatype.com › artifact › org.json › json
org.json:json - Maven Central
Copy to clipboard · <dependency> ...1224</version> <packaging>bundle</packaging> <name>JSON in Java</name> <description> JSON is a light-weight, language independent, data interchange format....
🌐
Maven Repository
mvnrepository.com › artifact › org.json
Maven Repository: org.json
JSON framework based on org.json implementation (patched for ChargeBee). ... aar android apache api arm assets build build-system bundle client clojure cloud config cran data database eclipse example extension framework github gradle groovy io ios javascript jvm kotlin library logging maven mobile ...
🌐
Maven Central Repository
search.maven.org › org.json › json › 20180813
Maven Central Repository Search
Perhaps someday the Java community will standardize on one. Until then, choose carefully. The license includes this restriction: "The software shall be used for good, not evil." If your conscience cannot live with that, then choose a different package. </description> <url>https://github.com/douglascrockford/JSON-java</url> <parent> <groupId>org.sonatype.oss</groupId> <artifactId>oss-parent</artifactId> <version>9</version> </parent> <scm> <url>https://github.com/douglascrockford/JSON-java.git</url> <connection>scm:git:git://github.com/douglascrockford/JSON-java.git</connection> <developerConne
Find elsewhere
🌐
Maven Repository
mvnrepository.com › artifact › org.json › json › 20210307
Maven Repository: org.json » json » 20210307
March 9, 2021 - RepositoriesCentralAcrylicStyleAppodealCarmCloudera PubGluu OXHortonworksKyligence PublicLoohpJamesMulesoftSpaceIOTalend PublicUnvusXceptance+11 more ... aar android apache api arm assets build build-system bundle client clojure cloud config cran data database eclipse example extension framework github gradle groovy io ios javascript jvm kotlin library logging maven ...
Published   Mar 09, 2021
Version   20210307
🌐
Maven Repository
mvnrepository.com › artifact › com.googlecode.json-simple › json-simple
Maven Repository: com.googlecode.json-simple » json-simple
March 21, 2012 - Maven Plugins · Testing · Android Packages · Language Runtime · JVM Languages · Logging Frameworks · JSON Libraries · Java Specifications · Core Utilities · Mocking · Annotation Libraries · Web Assets · HTTP Clients · Logging Bridges · Dependency Injection ·
🌐
Maven Repository
mvnrepository.com › artifact › javax.json › javax.json-api
Maven Repository: javax.json » javax.json-api
November 7, 2018 - Javax JSON · Links · Java Specifications · Maven Plugins · Testing · Android Packages · Language Runtime · JVM Languages · Logging Frameworks · JSON Libraries · Java Specifications · Core Utilities · Mocking · Annotation Libraries · Web Assets ·
🌐
Maven Repository
mvnrepository.com › artifact › com.fasterxml.jackson.core › jackson-core
Maven Repository: com.fasterxml.jackson.core » jackson-core
1 week ago - Jackson Core is a core library for Jackson that provides low-level streaming JSON input/output functionality. ... aar android apache api arm assets build build-system bundle client clojure cloud config cran data database eclipse example extension framework github gradle groovy io ios javascript jvm kotlin library logging maven mobile module npm osgi persistence plugin resources rlang sdk server service spring sql starter testing tools ui web webapp
🌐
Stack Overflow
stackoverflow.com › questions › 42969716 › how-to-import-org-json-in-maven-using-dependency
java - How to import org.json in maven using dependency - Stack Overflow
<?xml version="1.0" encoding="UTF-8"?> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> <modelVersion>4.0.0</modelVersion> <groupId>com.ssts</groupId> <artifactId>momcab1</artifactId> <name>momcab1</name> <packaging>war</packaging> <version>1.0.0-BUILD-SNAPSHOT</version> <properties> <java-version>1.7</java-version> <org.springframework-version>4.0.3.RELEASE</org.springframework-version> <org.aspectj-version>1.7.4</org.aspectj-version> <org.sl
🌐
GitHub
github.com › stleary › JSON-java › blob › master › docs › RELEASES.md
JSON-java/docs/RELEASES.md at master · stleary/JSON-java
JSON-java releases can be found by searching the Maven repository for groupId "org.json" and artifactId "json".
Author   stleary
🌐
Maven Repository
mvnrepository.com › artifact › org.json › json › 20160810
Maven Repository: org.json » json » 20160810
August 10, 2016 - There are a large number of JSON packages in Java. Perhaps someday the Java community will standardize on one. Until then, choose carefully. ... aar amazon android apache api arm assets build build-system bundle client clojure cloud config cran data database eclipse example extension framework github gradle groovy io ios javascript jvm kotlin library maven mobile module npm osgi plugin resources rlang sdk server service spring sql starter testing tools ui war web webapp
🌐
Maven Repository
mvnrepository.com › artifact › org.json › json › 20180130
Maven Repository: org.json » json » 20180130
There are a large number of JSON packages in Java. Perhaps someday the Java community will standardize on one. Until then, choose carefully. ... aar amazon android apache api arm assets build build-system bundle client clojure cloud config cran data database eclipse example extension framework github gradle groovy io ios javascript jvm kotlin library maven ...
🌐
Maven Repository
mvnrepository.com › artifact › org.json › json › 20170516
Maven Repository: org.json » json » 20170516
There are a large number of JSON packages in Java. Perhaps someday the Java community will standardize on one. Until then, choose carefully. ... aar android apache api application arm assets build build-system bundle client clojure cloud config cran data database eclipse example extension framework github gradle groovy io ios javascript kotlin library logging maven mobile module npm osgi plugin resources rlang sdk server service spring sql starter testing tools ui war web webapp
🌐
Maven Central
repo1.maven.org › maven2 › org › json › json › 20210307
Central Repository: org/json/json/20210307
org/json/json/20210307 · / json-20210307-javadoc.jar 2021-03-08 03:55 175322 json-20210307-javadoc.jar.asc 2021-03-08 03:55 473 json-20210307-javadoc.jar.asc.md5 2021-03-08 03:55 32 json-20210307-javadoc.jar.asc.sha1 2021-03-08 03:55 40 json-20210307-javadoc.jar.md5 2021-03-08 03:55 32 ...
🌐
Maven Repository
mvnrepository.com › artifact › com.jayway.jsonpath › json-path
Maven Repository: com.jayway.jsonpath » json-path
February 22, 2026 - Maven Plugins · Testing · Android Packages · Language Runtime · JVM Languages · Logging Frameworks · JSON Libraries · Java Specifications · Core Utilities · Mocking · Annotation Libraries · Web Assets · HTTP Clients · Logging Bridges · Dependency Injection ·