JSON node is a data source node used when the input to a task is a JSON file. It works mostly like the CSV Node.
Designing a Task Using a JSON Node:
Do the following to use a JSON node in a task:
Use an existing task or create a new task based on the requirement.
Note: Refer Create A Task for more details on how to create a task and how to open an existing task.
Drag and drop the JSON node from the Objects -> Data Sources section and connect the nodes.
Click on the JSON node and specify the properties:
Name: Name of the node. A default name is displayed in this field, which the user can edit according to the task and the intent of using the node.
Description: A short note on the purpose of the node.
Mark run Failure on Node Fail: When the Mark run Failure on Node Fail field is ON, if the node execution fails then the complete task execution is marked as fail.
JSON: Name of the JSON file to choose from the selected source in the Read JSON From:. Click the eye symbol in the JSON field to show the JSON data in the selected file. It is possible to filter the data in the JSON file by typing the filters in the column headers.
Refer Adding a JSON file to Jiffy’s Repository section for more details.
Remove blank attributes: When this is turned ON, it removes all the blank attributes in the selected JSON file.
Iterate on this node’s output?: When this is turned ON, the task will iterate on the JSON node’s output.
Click on the Trial Run icon to run the task.
Click on the Book icon above the JSON Data node to display the Result of execution window of the JSON Data node.
Adding a JSON file to Jiffy’s Repository:
Log in to Jiffy.
Navigate to the Templates section on the left-hand side.
Select the JSON Data option.
Click on the +Add JSON File button.
Type the details and click on the Select file button to upload the file.
Click on the Save/Upload button to save the file.
To view the file, click on the View JSON button.
Click on the Show JSON Raw Data button in the JSON File window to view Raw data..
Similarly, the user can Archive and Upload the JSON file by clicking the respective buttons.
Open the JSON file by clicking on the ID of the respective JSON file.
The details of all the tasks that use this JSON file are displayed here.
Click on the Edit button to edit the Title and the Description of the JSON file.
Click on the Replace JSON File button to upload a new XML file.
Note: When a file is modified, all the tasks that use this file will automatically get the modified file for the task execution.