Hi all - would really appreciate some help here. The end game is to dynamically add properties and values to a simple JSON object. But I'm falling at even the proof of concept stage witht he below really simple flow.. in the below addProperty doesn't seem to be updating the object, or in not the way I assumed it would.

the addProperty expression in AddFirstProperty :
addProperty(variables('ObjJSON'), 'PropertyName', 'PropertyValue')
(AddSecondProperty is the same except different PropertyName & PropertyValue)
So I would be expect something like the below in the output from the final step that I could then parse but it just shows as empty inside the curly brackets
{
"PropertyName" : "PropertyValue",
"PropertyName-2" : "PropertyValue-2"
}
Help much appreciated,
thanks