The ToJson()
takes a reference to a table and converts it to a JSON string. It is similar to ToXml()
, but expects a different structure.
The image below shows an example for the details of the expected structure:
ToJson()
returns the parsed data in a compact JSON string ready to be used with API calls and other purposes.