Variable names must start with a letter and contain only alphanumeric characters
Tip: URL parameters are located after a ? in the page URL.
Tips:
{{ example.before }}
{{ example.more }}
{{ example.alternative.before }}
{{ example.alternative.more }}
Tip: Array syntax: ["val1", "val2"], Object syntax: {"key": "value"}
supportTicket is an object composed of a subject, severity level, user environment, reporter’s contact (name and job title), and an URL providing more details on the contact.
{ "subject": "I have an issue", "severity": 2, "environment": ["Linux","PostgreSQL 9.3","Java 1.8","AngularJS 1.3"], "contact":{ "name":"John Doe", "jobTitle":"FrontEnd developer", "contactDetailsURL":"http://jsonplaceholder.typicode.com/users/1" } }
JSON specifications can be found on the W3C website
Tip: Hit $ key to access data, use ctrl-space to trigger autocomplete.
This example uses the JSON example provided if you select the type JSON.
It looks for the string ‘Linux’ in the array environment
of JSON object supportTicket
return $data.supportTicket.environment.some(function(env){ return env.indexOf("Linux") != -1; });
return new Date();