The JSON property injector process allows the creation of new key/value pairs in the output JSON record. You can inject one or more key/value pairs using this process as described here.
- To add a JSON property injector, click JSON property injector in Add Process window. The canvas updates immediately. The orange icon identifies that it is not valid, or not complete. The green ‘check’ icon is no longer present against the Target. This identifies that the pipeline is not complete, or not correct.Figure 1. Add JSON Property Injector
- Complete these fields for a JSON Property Injector in the bottom panel of the canvas.
Field Description Name Name for the process. The character limit is from 1 to 50. Description Short description about the JSON Property Injector. This will be visible on the canvas. The character limit is from 1 to 200. Add Property Specify a key name and a value. Note: Click Add Property to create a new row.Key name Specify the JSON key is injected or added. The character Key name limit is from 1 to 50. Injector type Choose the type of the Value field. The default Injector type is Value. Value / Annotation Specify the value you want. Note: This field is enabled only when Injector type is Value.Value / Annotation Select the value from the drop-down. The default is Host Name.Note: This field is enabled only when Injector type is Annotation.Delete Click to remove the row from the table. Note: Name and Key Name are required fields. If you leave one of the required fields blank, text on the bottom panel identifies this and the icon remains orange. You must complete the required fields to turn the icon to a green ‘check’.Example of completed JSON Property Injector:Figure 2. Completed JSON Property Injector - Click x at the top right of the bottom panel to close it and return to the canvas.
- To delete a JSON Property Injector, hover over the JSON Property Injector box and click the delete icon . A Delete Selected Item window appears. Click Yes, I still want to delete.Figure 3. Delete JSON Property Injector
To configure JSON Property Injector, see Configuring JSON Property Injector.