I am using ActionScript 2.0 for my app development. I have checked XML and LoadVars class. These classes by default send/receive data either in XML or name/value pair format. I want to send data in JSON format and receive the response in JSON format. How can I achieve this behavior using AS2.0. I have noticed that AS3.0 has the capabilities to do so. My client platform doesn't support AS3.0. Can anybody suggest a way to achieve this?
Thanks in Advance.
Thanks for the help.
The link provided above helps in receiving JSON data and parsing. How can I send JSON data over HTTP?
Atlast I am able to find the solution for this problem. In the end solutioin is very simple.
Following steps will help in sending request in JSON format.
1. extend LoadVars class
2. override toString method. (It should return JSON format )
3. Use subclass to send the request.