JSON Support for Axis2/C
The mapping between XML and JSON is a critical factor. The direct mapping between XML and JSON is possible owe to the close relationship between XML and JSON. The conversion from XML to JSON or JSON to XML is pretty straight forward, but the problems arise when we are converting back to the original form from a converted form. In order to refrain from these issues various mapping conventions are used. Since there no standard convention in this process, ‘JSON Support for Axis2/C’ features a couple of most popular standards. The conversions that are going to be supported in this implementation are Badgerfish and Mapped conventions.
-An object model for JSON. This model should be build able from an incoming JSON string and also programmatically.
-A parser capable of parsing the JSON object model in memory and producing Stax events.
-Parsers and JSON object serializes for each and every supported conventions.
-Modify Axis2C internal working so that it can switch between parsers for XML messages and JSON messages.
-Samples capable of sending and receiving JSON strings (Yahoo has JSON web services API).
-Appropriate development documentation for continuation of the project and user documentation.
My objective is to provide Axis2C, the capability to populate and consume web services that use JSON. As the first step I’m going to implement a JSON object model. After the creation of the JSON object model the implementation of the parsers should be start. In this case there should be two parses to be implemented for each convention. The Badgerfish parser and Mapped parser both has reader and a writer. Thereafter the parses should be integrated with Axis 2/C