Insert JObject inside JArray of a JObject using Invoke Code

Hi, I’m trying to add data inside an array of a JSON. I got that JSON deserialized into a JObject
but I don’t know how to add data to the array
Exemple:

{
“NAME”:“JOHN”,
“AGE”:“30”,
“LIST”:
[
{
“ITEM01”:“Car”,
“ITEM02”:“Cellphone”
}
]
}

I want to add a JObject to the array “LIST”
Example of what I want to add:
{
“ITEM01”:“Wallet”,
“ITEM02”:“Keys”
}

@Alamyr_Junior
find some starter help here:
JsonAdd_ItemToArray.xaml (6.4 KB)
Data.json (93 Bytes)
Result.json (190 Bytes)

It was just about introducing some different building blocks. Feel free to opimize it

4 Likes

Thanks ppr. It really helped!

Regards,

Alamyr

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.