JSON with Y.io

A natural fit for JSON is working with the IO module to parse 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 for processing.

Click the Get Messages button to send the request to the server.