Please delete as the topic is no longer relevant. I simply forgot to add "multiline" to the query string.
-Peter
Hi,
I'd like to propose that the JSON format be updated for functions to make it more parseable by scripts.
Ex:
Program: get-dns
{ "status": "success", "output": [ { "record": "mydomain.com.", "type": "A", "priority": "0", "value": "10.0.0.1" }, { "record": "ftp.mydomain.com.", "type": "A", "priority": "0", "value": "10.0.0.1" }, { "record": "mx1.mydomain.com.", "type": "A", "priority": "0", "value": "10.0.0.2" }, { "record": "mx2.mydomain.com.", "type": "A", "priority": "0", "value": "10.0.0.3" }, { "record": "ns1.mydomain.com.", "type": "A", "priority": "0", "value": "10.0.0.4" }, { "record": "ns2.mydomain.com.", "type": "A", "priority": "0", "value": "10.0.0.5" }, { "record": "www.mydomain.com.", "type": "A", "priority": "0", "value": "10.0.0.1" }, { "record": "mydomain.com.", "type": "MX", "priority": "10", "value": "mx1.mydomain.com." }, { "record": "mydomain.com.", "type": "MX", "priority": "20", "value": "mx2.mydomain.com." }, { "record": "mydomain.com.", "type": "NS", "priority": "0", "value": "ns1.mydomain.com." }, { "record": "mydomain.com.", "type": "NS", "priority": "0", "value": "ns2.mydomain.com." } ] }
As you can see, the JSON output is formatted in a multi-level array, with name-value pairs making it easier to parse.
-Peter