Skip to content

Latest commit

 

History

History
executable file
·
39 lines (24 loc) · 1.25 KB

README.md

File metadata and controls

executable file
·
39 lines (24 loc) · 1.25 KB

JSONata Exerciser

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.

Running the app locally

  • npm install
  • npm start

The app is also available at try.jsonata.org

Optional: Enabling 'Save and Share' icon

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

Selecting version of JSONata

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