The APIs are based upon the original work done at json.org/java.
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 guide and 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 here.
- TOTD #143: Retrieve Twitter user timeline using using Jersey and OAuth
- TOTD #10: Consuming JSON and XML representations generated by a Jersey endpoint in a jMaki Table widget
- TOTD #56: Simple RESTful Web service using Jersey and Embeddable GlassFish – Text and JSON output
- TOTD #8: Generating JSON using JAXB annotations in Jersey
- Language-neutral data format: XML and JSON