Issue filling a json

Hello everyone

I have this json structure:

{
“value1” : 1281,
“value2” : “Y766808G”,
“value3” : “6”,
“value4”: “123.jpg”,
“value5” : [
{
}
]
}

And I need to fill “value5” with some other values, inside the brackets: {}

I am a bit confused about how I can do it, any ideas?

Thank you!

Hey @Gmar

My suggestion would be to handle this as a dictionary(Of String, Object) (named valueDict for this example) then use an Assign activity to assign a new Dictionary of values to valueDict(“value5”)

Hi @Gmar

Have a look to the below thread :-

Mark as solution and like it if it helps you :slight_smile:

Happy Automation :raised_hands:

Best Regards
Er Pratik Wavhal :robot::man_technologist:t4: :computer:

@Gmar
find some starter help here on generating and value resetting of a JSON
GenerateJson.xaml (6.3 KB)

Lets assume the JSON is already parsed into a JObject (if not see starter help)
Within an assign
left side: yourJObjectVar(“value5)”
rightside: JToken.FromObject(yourArrayContentVar)

Hello Gmar,
In this video I work with a complex JSON:

Thanks,
Cristian Negulescu