JSON in Java

org.json : json

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. This is a reference implementation. There is a large number of JSON packages in Java. 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.

Dec 05, 2021
2.1k usages
3.9k stars

Add dependency in Maven / Gradle

<!-- https://jmaven.com/dependency/org.json/json --> 
<dependency>
    <groupId>org.json</groupId>
    <artifactId>json</artifactId>
    <version>20211205</version>
</dependency>

1. Add dependency to a Maven project

Maven: Add the org.json:json library to the dependencies element of your pom.xml file:

<dependencies>
<dependency>
  <groupId>org.json</groupId>
  <artifactId>json</artifactId>
  <version>20211205</version>
</dependency>
</dependencies>

To install org.json:json library use the following command:

mvn install

2. Add dependency to a Gradle project

Gradle Groovy DSL: Add the org.json:json library to the dependencies section of your build.gradle file:

dependencies {
implementation 'org.json:json:20211205'
}

Gradle Kotlin DSL: Add the org.json:json library to the dependencies section of your build.gradle.kts file:

dependencies {
implementation("org.json:json:20211205")
}

3. Add dependency to a SBT Scala project

Scala: Add the org.json:json library to your build.sbt file:

libraryDependencies += "org.json" % "json" % "20211205"

4. Add dependency to a Grape project

Grape: Add an annotation org.json:json library to your groovy script file:

@Grapes(
    @Grab('org.json:json:20211205')
)

Compile Dependencies (0)

Group / Artifact Usage

Provided Dependencies (0)

Group / Artifact Usage

Test Dependencies (3)

Group / Artifact Usage
junit » junit 63k
com.jayway.jsonpath » json-path 935
org.mockito » mockito-core 16k

Recommended for You

API library for Cronet. Cronet is the Chromium network stack made available to Android apps as a library.

Tools for detecting, extracting and comparing faces within images.

1 usages

Packages NEBA for deployment in Adobe AEM

50 stars

SDK to connect to Delivereo Business API.

More from Group

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. This is a reference implementation. There is a large number of JSON packages in Java. 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.

2.1k usages
3.9k stars

JSON framework based on org.json implementation (patched for ChargeBee).

19 usages
1 stars
© 2022 JMaven.com