Add JArray
The Add JArray component in Robbot RPA enables you to append a JObject to an existing JArray. This component is particularly useful when you need to dynamically update or extend a JSON array with new objects.
Parameters
JArray :This parameter expects a JArray variable that represents the target JSON array. Provide the existing JArray to which you want to add the JObject. Type : JArray.
JObject: This parameter expects a JObject or object that represents the new JSON object you want to add to the JArray. Provide the JObject or object you want to append to the JArray. Type : Object.
Result: This parameter returns the updated JArray after adding the JObject. The Result output can be used for further processing or to store the modified JArray. Type:JArray.
Usage
To use the JArrayAdd component in your Robbot RPA project, follow these steps:
Open your Robbot RPA project.
Drag and drop the JArrayAdd component into your sequence or workflow.
Configure the component by providing the necessary input:
Set the JArray parameter by providing the existing JArray variable that you want to update.
Provide the JObject or object that you want to add to the JArray using the JObject parameter.
Continue building your sequence or workflow by adding other components or actions that depend on the modified JArray.
Access the updated JArray by referencing the Result output parameter of the JArrayAdd component.
Execute your sequence or workflow to add the JObject to the JArray.
By utilizing the JArrayAdd component, you can easily extend or update a JArray with new JObject objects in your Robbot RPA project, enabling dynamic manipulation and modification of JSON data.