Getting data from Arduino Create Console.

I want to be able to get data from the Arduino Create Agent console using PHP or JavaScript.

For example,

If I type 'list' into the Arduino Create Agent console I get JSON back. How can I take that JSON and display it on a webpage?