Upgrade to ARC Pro

Get access to the latest features and updates before they're released. You'll have everything that's needed to unleash your robot's potential!

Parse JSON

The JSON javascript class is included in the ARC javascript compiler. You can parse the JSON in javascript directly in ARC.

Here's an example parsing JSON from a string...


var resp = '{ "glossary": { "title": "example glossary" } }';

var myObj = JSON.parse(resp);

print (myObj.glossary.title);

And here's an example of getting JSON from an HTTP get request...


var resp = Net.hTTPGet("");

var myObj = JSON.parse(resp);

print (myObj.ip);