Work with JSON

JSON (JavaScript Object Notation) is a lightweight data-interchange format that resembles JavaScripts literal notation such as { "x" : 5 , "y" : 7 }.

JSON is a text format, but in robots the JSON structure is represented and viewed similar to the way XML is represented. JSON is treated as its own data format (exactly as HTML, XML and Excel) with its own Page Type. It is not transformed into XML as it was in previous versions of Design Studio. The Test Page Type step action can verify that the content of the current windows is JSON.

In Applications View, JSON is loaded from a URL or from variables/attributes of simple type JSON. A dedicated view is available to view JSON variables opened in both the Applications View and the Variables View, along with dedicated step actions that work only on JSON.

The following is an example of a JSON text:

                { "answer" : 42,
                   "people" : [ { "firstName" : "Arthur",
                                  "lastName" : "Dent" },
                                { "firstName" : "Ford",
                                  "lastName" : "Prefect" } ] }