Write JSON from a ProDataSet
- Last Updated: November 5, 2025
- 1 minute read
- OpenEdge
- Version 13.0
- Documentation
The following code example defines a static ProDataSet object, attaches its data sources, fills the ProDataSet object, and writes the ProDataSet object to a JSON string:
|
The following is an excerpt of the JSON produced by this procedure:
|
Because the ProDataSet definition did not include the NESTED option
for the data-relations, the records from each temp-table are presented
after each other. If you do not nest child tables, the JSON does
not contain the data relation information. The serialization process
also loses any information about key columns.
If you run write-json-pds2.p which uses a ProDataSet with nested child tables, the resulting JSON looks like this:
|