Adding JsonUtils to local automation to use collection

Hi All,

We have a scenario in our project that there are around 10 unique json template
To extract the values from Json, i have 2 options

Option1 - Use method GetValueFromJson and pass each node key to get value

Option2 - use collection in jsonUtils, so i can use getValueFromJSONByKeys method

If i go with option 2, the json utils will be specific to that template bcs of collection, so i have to move the jsonutils to local automation

Similarly i can add jsonutils to different local automations and configure collection specific to json template

I would like to know if its okay to add too many json utils to local automations?

Is it light weighted or will cause any performance issues?

@Vivek Ayyakannu You may use as many components as needed. There is a slight amount of overhead for each one, but it is likely not measurable at this scale. I would encourage you to look at the latest release of Pega Robotics 22.1. We have added a new component to assist with JSON.

https://docs.pega.com/bundle/robotic-automation-221/page/robotic-automation/advanced-automation/working-with-json-data-and-net-objects.html