This allows you to test JSONata expressions against a JSON input structure. Paste the JSON data into the left hand pane, and type JSONata expressions into the top right pane. The result will appear below.
npm install
npm start
The app is also available at try.jsonata.org
This requires a Cloudant database to store expressions
- Provision cloudant service
- create a database named
exerciser
- Bind service to Exerciser app
The exerciser will pick up the credentials from VCAP_SERVICES, if provisioned in Cloud Foundry
This also requires Google ReCapture credentials, which are assigned to environment variables:
- RECAPTURE_SITEKEY
- RECAPTURE_SECRET
On loading, the exerciser uses the latest version of JSONata served up from unpkg.com.
It is possible to load different versions of JSONata by typing the following command into the JSONata input box and pressing return:
J:use 1.3.1
to load version 1.3.1 which was published to npm
It is also possible to load a development branch from GitHub using (e.g.):
J:branch my_branch