Working with JSON
Lesson 7: Conclusion
There are two additional ways to use JSON with DataFlex:
- Calling JSON REST services has the class cJsonHttpTransfer class that works with the cJsonObject class as input and output types.
- Use JSON with the regular DataFlex web services.
- When a web service is defined in DataFlex methods are published that can have structs and arrays as parameters and return values. They can be called using SOAP, JSON and XML.
- If looked at as a generated service a service page will be generated that lists all the available functions. Clicking on one of the procedures shows an overview of how to call it using SOAP, XML and then JSON.