JSON with Y.io

A natural fit for the JSON module is to work with IO to parse JSON messages received via XMLHttpRequest (XHR). In this example, we'll request JSON data from the server using the Y.io method and parse the resulting JSON string data.

Click the Get Messages button to send the request to the server; the response will be displayed below the button.