Skip to content

andrew-coleman/jsonata-exerciser

 
 

Repository files navigation

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

About

Playground for trying out JSONata expressions

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 71.5%
  • HTML 18.3%
  • CSS 10.2%