MVN

org.json : json

Maven & Gradle

Mar 20, 2022
3.7k usages
3.9k stars

JSON in Java · 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.

<dependency>
    <groupId>org.json</groupId>
    <artifactId>json</artifactId>
    <version>20220320</version>
</dependency>
Copy
pom.xml
Table Of Contents

Latest Version

Choose a version of org.json : json to add to Maven or Gradle - Latest Versions:

  • Latest Stable: 20220320

All Versions

Choose a version of org.json : json to add to Maven or Gradle - All Versions:

  • Version Updated
  • json-20220320

    Mar 20, 2022
  • json-20211205

    Dec 05, 2021
  • json-20210307

    Mar 08, 2021
  • json-20201115

    Nov 15, 2020
  • json-20200518

    May 20, 2020
  • json-20190722

    Aug 07, 2019
  • json-20180813

    Aug 14, 2018
  • json-20180130

    Feb 03, 2018
  • json-20171018

    Oct 19, 2017
  • json-20170516

    May 16, 2017
  • json-20160810

    Aug 10, 2016
  • json-20160807

    Aug 07, 2016
  • json-20160212

    Feb 14, 2016
  • json-20151123

    Nov 24, 2015
  • json-20150729

    Sep 27, 2015
  • json-20141113

    Nov 13, 2014
  • json-20140107

    Jan 07, 2014
  • json-20131018

    Oct 18, 2013
  • json-20090211

    Feb 26, 2009
  • json-20080701

    Jul 20, 2008
  • json-20070829

    Nov 12, 2007

How to add a dependency to Maven

Add the following org.json : json maven dependency to the pom.xml file with your favorite IDE (IntelliJ / Eclipse / Netbeans):

<dependency>
    <groupId>org.json</groupId>
    <artifactId>json</artifactId>
    <version>20220320</version>
</dependency>

How to add a dependency to Gradle

Gradle Groovy DSL: Add the following org.json : json gradle dependency to your build.gradle file:

implementation 'org.json:json:20220320'

Gradle Kotlin DSL: Add the following org.json : json gradle kotlin dependency to your build.gradle.kts file:

implementation("org.json:json:20220320")

How to add a dependency to SBT Scala

SBT Scala: Add the following org.json : json sbt scala dependency to your build.sbt file:

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

Advertisement