JavaScript Object Notation (JSON4J)
The JavaScript™ Object Notation (JSON4J) library is an implementation of a set of JavaScript Object Notation (JSON) handling classes for use within Java™ environments.
The JSON4J library provides the following functions:
- A simple Java model for constructing and manipulating data to be rendered as the JSON implementation.
- A fast transform for XML to JSON conversion, for situations where conversion from an XML reply from a Web service into a JSON structure is desired for easy use in Asynchronous JavaScript and XML (Ajax) applications. The advantage of this is that Ajax-patterned applications can handle JSON formatted data without having to rely on ActiveX objects in Microsoft® Internet Explorer XML transformations and other platform-specific XML parsers. In addition, JSON-formatted data tends to be more compact and efficient to transfer.
- A JSON string and stream parser that can generate the corresponding JSONObject, which represents that JSON structure in Java. You can then make changes to that JSONObject and serialize the changes back to the JSON implementation.
For more information about JSON4J, refer to the JSON4J overview in the WebSphere® Application Server Feature Pack for Web 2.0 Information Center.
For more information about JSON, refer to www.json.org.
Related tasks
Accessing JEE data (Web remoting)
Enabling ATOM and RSS feed syndication support
Creating Rich Internet Applications (RIA)