JSON
JSON Guide
Overview
Reading/Parsing JSON (text to object)
var jsonString = '{"name": "Alice", "age": 30, "isMember": true}';
var parsedObject = JSON.parse(jsonString); // Parsing JSON to an object
application.output("Name: " + parsedObject.name); // Accessing object properties
application.output("Age: " + parsedObject.age);Writing/Generating JSON (object to text)
Examples
Simple JSON Example (Converting Car Data to JSON)
Converting a JSRecord to JSON
Last updated
Was this helpful?