[APP][Pro] JSON Handler and Manipulator

Hi,

What I’m trying to do is to make a framework to send commands using JSON and Advance trigger to control my Eufy cameras. The JSON are not sent to the cameras, I using them only in my flows.

I have no experiences with JSON and I’m struggling to understand how I should do to make an array of objects using the Build JSON card. Any tips how I could accomplish that?

Se an example below how I think the JSON could look like if i want to sent several “commands”
at ones in an array and how I try to build the JSON.

image

{
	"type": "AdvancedTrigger",
	"trigger": "EUFYKÖKET",
	"source": "eufy_köket_away",
	"commands": [
		{
			"type": "SECURITYMODE",
			"name": "AWAY",
			"force": true
		},
		{
			"type": "SETTINGS",
			"name": "MOTIONTRACKING",
			"value": true
		},
		{
			"type": "SETTINGS",
			"name": "NIGHTVISION",
			"value": true
		}
	]
}