Skip to main content

TOTD #91: Retrieve JSON libraries using Maven dependency: json-lib

Posted by arungupta on August 7, 2009 at 5:25 AM PDT

So you need to include JSON
libraries in your Maven project. The only option that seems to be
currently available is using href="">json-lib
with the following dependencies:

style="text-align: left; background-color: rgb(204, 204, 255); width: 100%;"
cellpadding="2" cellspacing="2">






The APIs are based upon the original work done at href="">

If you are using NetBeans
for adding the Maven dependency then it nicely shows the different
versions for the artifact as shown below:


The usage
and href="">samples
at json-lib have lots of documentation to get you started. Don't forget
the package
names are changed so "org.json.JSONObject"
is "net.sf.json.JSONObject" and similarly other classes.

Please leave suggestions on other TOTD (Tip Of The Day) that
you'd like to see.
A complete archive of all the tips is available href="">here.

Technorati: json

Related Topics >>