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

Answer from Arun Manivannan on Stack Overflow
🌐
Maven Repository
mvnrepository.com › artifact › org.json › json
Maven Repository: org.json » json
December 24, 2025 - 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 · XML Processing · Concurrency Libraries · Web Frameworks · Android Platform · Code Generators · View All · Home » org.json » json ·
🌐
Cliftonlabs
cliftonlabs.github.io › json-simple
json-simple
After redesigning the library to be backwards compatible it was decided that support for java 2 to 6 would be dropped in favor of generics (thus a 2.* version) as it was the most avidly requested feature. The library was also written in the package org.json.simple so a maven artifact under the org.json.simple groupId made sense.
Discussions

java - org.json.simple cannot be resolved - Stack Overflow
If you never downloaded it, you ... findjar.com/class/org/json/simple/JSONArray.html 2012-10-31T09:54:02.29Z+00:00 ... Ok. I have it. The eclipse (android) directory is /libs . Thanx 2012-10-31T09:55:21.627Z+00:00 ... I was facing same issue in my Spring Integration project. I added below JSON dependencies in pom.xml ... More on stackoverflow.com
🌐 stackoverflow.com
java - How to import org.json in maven using dependency - Stack Overflow
I want to use JSON as an interaction between Client and Server. But I am getting an error like this: pom.xml More on stackoverflow.com
🌐 stackoverflow.com
org.json JAR provisioning - Stack Overflow
I was wondering why www.json.org/anyone else doesn't provide an official JAR package of org.json for download? All queries I find of people asking where they can download the JAR results in replies... More on stackoverflow.com
🌐 stackoverflow.com
java - Looking for JsonParser dependency - Stack Overflow
You can certainly find smaller dependencies, which only contain the classes you want. Simply search for it on google or mavencentral. ... Find the answer to your question by asking. Ask question ... See similar questions with these tags. ... 0 Need Jar file to read JSON array returned in response, ... More on stackoverflow.com
🌐 stackoverflow.com
🌐
Maven Repository
mvnrepository.com › artifact › com.googlecode.json-simple › json-simple › 1.1
Maven Repository: com.googlecode.json-simple » json-simple » 1.1
Dependency Injection · XML Processing · Web Frameworks · Android Platform · Concurrency Libraries · Defect Detection Metadata · Code Generators · Top Categories · 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 ·
🌐
Maven Repository
mvnrepository.com › artifact › org.json › json-simple
Maven Repository: org.json » json-simple
Dependency Injection · XML Processing · Web Frameworks · Android Platform · Concurrency Libraries · Defect Detection Metadata · Code Generators · Top Categories · Home » org.json » json-simple · JSON Simple · ICM (1) Central · Atlassian External ·
🌐
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 ...
🌐
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
🌐
Java2s
java2s.com › Open-Source › Maven_Repository › JSON › json-simple › json_simple_1_1_1.htm
Maven Repository - POM file for JSON json-simple 1.1.1 1.1.1
<dependency> <groupId>com.googlecode.json-simple</groupId> <artifactId>json-simple</artifactId> <version>1.1.1</version> </dependency> If you think this Maven repository POM file listing for json-simple is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks. Name:The Apache Software License, Version 2.0 URL: http://www.apache.org/licenses/LICENSE-2.0.txt.
Find elsewhere
🌐
DigitalOcean
digitalocean.com › community › tutorials › json-simple-example
json-simple example | DigitalOcean
August 4, 2022 - Since json-simple is available in maven central repository, best way is to add it’s dependency in pom.xml file. <dependency> <groupId>com.googlecode.json-simple</groupId> <artifactId>json-simple</artifactId> <version>1.1.1</version> </dependency> Most important class in json-simple API is org.json.simple.JSONObject.
🌐
Maven Central Repository
search.maven.org › artifact › com.googlecode.json-simple › json-simple › 1.1.1 › bundle
Maven Central Repository Search
pkg:maven/com.googlecode.json-simple/json-simple@1.1.1 · Used in: components · Overview · Overview · Versions · Versions · Dependents · Dependents · Dependencies ·
🌐
Maven Central
central.sonatype.com › artifact › org.json › json
org.json:json - Maven Central
<dependency> <groupId>org.json...</version> <packaging>bundle</packaging> <name>JSON in Java</name> <description> JSON is a light-weight, language independent, data interchange format....
🌐
Jar-Download
jar-download.com › home › com.github.cliftonlabs › json-simple › 2.1.2 › source code › jsonobject.java
org.json.simple.JSONObject Maven / Gradle / Ivy
org.json.simple.JSONObject maven / gradle build tool code. The class is part of the package ➦ Group: com.github.cliftonlabs ➦ Artifact: json-simple ➦ Version: 2.1.2
🌐
Maven Repository
mvnrepository.com › artifact › com.googlecode.json-simple › json-simple
Maven Repository: com.googlecode.json-simple » json-simple
March 21, 2012 - Googlecode JSON Simple · JSON Libraries · JSON Schema Libraries · JSON-LD Libraries · JSON Query Libraries · JSON-RPC Libraries · 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 ·
🌐
Jar-download
jar-download.com › maven-repository-class-search.php
Download dependencies for java class org.json.simple.JSONObject
Here you can download the dependencies for the java class org.json.simple.JSONObject. Use this engine to looking through the maven repository.
🌐
Sourcecodeexamples
sourcecodeexamples.net › 2019 › 12 › json-simple-maven-dependency.html
json-simple maven dependency
December 3, 2019 - Copy below JSON.simple Gradle dependency and paste in your project build.gradle file: // https://mvnrepository.com/artifact/com.googlecode.json-simple/json-simple compile group: 'com.googlecode.json-simple', name: 'json-simple', version: '1.1.1' https://repo1.maven.org/maven2/com/googlecode/json-simple/json-simple/1.1.1/json-simple-1.1.1.jar ·
🌐
Reddit
reddit.com › r/java › the curious case of json-java (org.json) and maven's dependency "hell"
r/java on Reddit: The curious case of JSON-Java (org.json) and Maven's dependency "hell"
July 19, 2025 -

Hi. I have a recurring maven(?) issue that I hope is not unique to me and has been solved by someone somewhere.

As JSON parser, I use JSON-Java (the one with package org.json), instead of more famous ones, as the DX and API feel more fit for most/all my projects.

However, from time to time, I reach a very dreadful situation, where the "version" of the JSON-Java library that is available to my code is "not" the one that I have declared in my pom.xml file. In once case, the copyright notice in the source that I could see by clicking the class name in VSCode was from 2010, with the painful difference to the modern version that all parsing methods threw checked exceptions. In another instance, the JSONArray class did not implement Iterable/Iterator where in modern versions it does.

This is likely a maven transitive dependency issue, but the reason it is so visible for this particular library, is because either many libraries already have their own dependency on it, or that it's interface has evolved quite significantly along the way. Likely both.

The solution "in the book" for this is apparently to do "mvn dependency:tree" and exclude JSON-Java explicitly from other dependencies that depend on it. But it doesn't work for me! In my dependency three, only the recent version that is in my own pom file is shown, whereas in code/IDE (VSCode + IntelliJ), I can only use the old version. My deployment involves building a fat Jar, so it happens there too.

Am I doing something wrong? Is there a proven way to make only a certain version of a dependency available to my code, regardless of other versions that may be present deeper in the class path? Does the order of dependencies in pom file matter? and how can I strictly control the versions of dependencies that appear in my fat jar, in case it is possible at all?

Many thanks

🌐
Github-wiki-see
github-wiki-see.page › m › RameshMF › java-json-processing-tutorial › wiki › JSON.simple-Maven-Dependency
JSON.simple Maven Dependency - RameshMF/java-json-processing-tutorial GitHub Wiki
Copy below JSON.simple gradle dependency and paste in your project build.gradle file: // https://mvnrepository.com/artifact/com.googlecode.json-simple/json-simple compile group: 'com.googlecode.json-simple', name: 'json-simple', version: '1.1.1' https://repo1.maven.org/maven2/com/googlecode/json-simple/json-simple/1.1.1/json-simple-1.1.1.jar ·