Why JSON Support for Axis2?
Apache Axis2 is a Web services stack that delivers incoming messages into target applications. In most cases, these messages are SOAP messages. In addition, it is also possible to send REST messages through Axis2. Both types of messages use XML as their data exchangeable format. So if we can use XML as a format, why not use JSON as another format? There are many advantages of implementing JSON support in Axis2. Mainly, it helps the Javascript users (services and clients written in Javascript) to deal with Axis2. When the service or the client is in Javascript, it can use the JSON string and directly build Javascript objects to retrieve information, without having to build the object model (OMElement in Axis2). Also, Javascript services can return the response through Axis2, just as a JSON string can be shipped in a JSONDataSource. This architecture is explained in more detail in the next section of this article. Other than for that, there are some extra advantages of using JSON in comp