Hey,
I was testing the “JSON” output option added recently, and noticed that it includes formatting and such.
Personally, when I think of an API, I think of raw output data.
What I’d like is the ability to turn off the formatting, so that the output is raw in nature.
Ex. (the following is represented as an array for demonstration purposes)
$output = array(“command” => “list-domains”,“status” => “success”,“output” => array(array(“name” => “Domain”,“value” => “mydomain.com”),array(“name” => “Domain”,“value” => “myotherdomain.com”)));
*** the example does not include all available data for command ***
As a app developer, this would allow me more flexibility as I could decode the JSON text into a clean object and/or array using the programming language of choice, then display the content however I wanted to. All this without having to do more unneeded parsing, and/or striping of content. In theory this should also make creating the API output a bit more faster as you get rid of unneeded tags and such.
Just a thought.
–
Peter