ToJson(#table)

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:

https://s3-us-west-2.amazonaws.com/secure.notion-static.com/10bece69-d601-498c-adbf-8d455f2d9659/Screenshot_2021-06-17_at_17.25.06.png

ToJson() returns the parsed data in a compact JSON string ready to be used with API calls and other purposes.