Source Script Node (Object)

Experimental

This node allows you to customize data extraction and manipulation then return data in JSON format to the following node.

Example: Read a JSON file, parse its content, and return the resulting JSON object.

var jsonContent = FileUtil.readFileContent("d:\\creds.json");
return JsonUtil.parse(jsonContent);

Example: Retrieve data from API and return as JSON

// Initiate an HTTP GET request
var request = HttpUtil.get("https://boi.org.il/PublicApi/GetExchangeRates");

// Parse the JSON response
var jsonContent = JsonUtil.parse(request.asString().getBody());

return exchanges;

Last updated