# \[APP\]\[Pro\] JSON Handler and Manipulator

**URL:** <https://community.homey.app/t/app-pro-json-handler-and-manipulator/66317>\
**Category:** Apps\
**Tags:** app, tools, homey-pro\
**Created:** [July 21, 2022, 9:01am UTC](https://community.homey.app/t/app-pro-json-handler-and-manipulator/66317 "2022-07-21T09:01:57Z")\
**Posts on this page:** 20\
**Page:** 6

<div class="post-metadata">

**Author:** ![jonorland](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/jonorland/32/16469_2.png) [@jonorland](https://community.homey.app/u/jonorland)\
**Post date:** [July 21, 2024, 10:14am UTC](https://community.homey.app/t/app-pro-json-handler-and-manipulator/66317/102 "2024-07-21T10:14:10Z")

</div>

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](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/9/5/95c2a79211ae21a8614c6e107e35736e01d184e8.png)

```auto
{
	"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
		}
	]
}

```

---

<div class="post-metadata">

**Author:** ![Arie\_J\_Godschalk](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/arie_j_godschalk/32/63027_2.png) [@Arie\_J\_Godschalk](https://community.homey.app/u/Arie_J_Godschalk)\
**Post date:** [October 8, 2024, 4:56am UTC](https://community.homey.app/t/app-pro-json-handler-and-manipulator/66317/103 "2024-10-08T04:56:12Z")

</div>

> [@jonorland](#):
>
> Any tips how I could accomplish that?

You can place the whole array in the json value of the card.  
So, the complete `[...]`

---

<div class="post-metadata">

**Author:** ![janrikard](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/janrikard/32/34785_2.png) [@janrikard](https://community.homey.app/u/janrikard)\
**Post date:** [January 26, 2025, 8:23pm UTC](https://community.homey.app/t/app-pro-json-handler-and-manipulator/66317/104 "2025-01-26T20:23:37Z")

</div>

Hi

I have a problem, i get a lot of \ in my json

I create a jason

 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/f/2/f2a3f94e5c68851125a22716047076eb1dd58839.png)  
and get the output  
 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/b/2/b23b5888d2c7ea5c6bceec49ad1eb67054f73b04.png)  
And then i put that json in another json  
 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/1/7/172004b7e5a6ae0d7dbc485f3e48c288af874155.png)  
and get a bunch of   
how do i get rid of those?

---

<div class="post-metadata">

**Author:** ![janrikard](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/janrikard/32/34785_2.png) [@janrikard](https://community.homey.app/u/janrikard)\
**Post date:** [January 27, 2025, 8:14pm UTC](https://community.homey.app/t/app-pro-json-handler-and-manipulator/66317/105 "2025-01-27T20:14:00Z")

</div>

the backslashes isnt in the json-variable in the card

 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/2/1/210c9d4c019038c211b6873b2627de65ed5da13c.png)  
only in the result  
 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/2/8/282b594f9cb50738ffec4a1048e93636d86304fc.png)

/Rikard

---

<div class="post-metadata">

**Author:** ![janrikard](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/janrikard/32/34785_2.png) [@janrikard](https://community.homey.app/u/janrikard)\
**Post date:** [January 29, 2025, 9:43am UTC](https://community.homey.app/t/app-pro-json-handler-and-manipulator/66317/106 "2025-01-29T09:43:41Z")

</div>

does maybe @Arie_J_Godschalk have any ide how to get rid off the \ in the json?

---

<div class="post-metadata">

**Author:** ![Arie\_J\_Godschalk](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/arie_j_godschalk/32/63027_2.png) [@Arie\_J\_Godschalk](https://community.homey.app/u/Arie_J_Godschalk)\
**Post date:** [January 29, 2025, 10:09am UTC](https://community.homey.app/t/app-pro-json-handler-and-manipulator/66317/107 "2025-01-29T10:09:19Z")

</div>

@janrikard  
I am unsure what you are trying todo.  
You already get a JSON, but then tou create a new empty json (with the flowcard), set a property (from which the name comes from a tag) with the first json, as text?

Are you trying to modify or read the properties?  
In both cases (both different flowcards), place the json tag in the Existing Json field.

---

<div class="post-metadata">

**Author:** ![janrikard](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/janrikard/32/34785_2.png) [@janrikard](https://community.homey.app/u/janrikard)\
**Post date:** [January 29, 2025, 10:27am UTC](https://community.homey.app/t/app-pro-json-handler-and-manipulator/66317/108 "2025-01-29T10:27:16Z")

</div>

Hi

Im trying to construct a json like this

```auto
{
    "Fri": {
        "date": "2025-01-24",
        "predicted_production": 24,
        "produced_production": 24
    },
    "Sat": {
        "date": "2025-01-25",
        "predicted_production": 25,
        "produced_production": 25
    },
    "Sun": {
        "date": "2025-01-26",
        "predicted_production": 26,
        "produced_production": 0
    },
    "Mon": {
        "date": "2025-01-27",
        "predicted_production": 5,
        "produced_production": 0
    }
}

```

And i never successed doing that in one step first i construct the with one flowcard

```auto
{
        "date": "2025-01-24",
        "predicted_production": 24,
        "produced_production": 24
    }

```

and then trys to add that to a new json with a second flowcard

```auto
 "Fri": {
$json
}

```

hope this make it more clear

/Rikard

---

<div class="post-metadata">

**Author:** ![Arie\_J\_Godschalk](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/arie_j_godschalk/32/63027_2.png) [@Arie\_J\_Godschalk](https://community.homey.app/u/Arie_J_Godschalk)\
**Post date:** [January 29, 2025, 12:01pm UTC](https://community.homey.app/t/app-pro-json-handler-and-manipulator/66317/109 "2025-01-29T12:01:28Z")

</div>

Okay, what you wanna do is:

 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/6/1/61c4bb6267c5222c6e2de1bc6c9052dc28a81aac.png)  
Here i create a JSON.

Then use this card:

 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/0/d/0d68335bae5dd94035bc55ad430f50902151e722.png)

And use it like this:

 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/0/9/095c3cd9c4ea26196ec9e5c697b55539b069e759.png)

---

<div class="post-metadata">

**Author:** ![janrikard](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/janrikard/32/34785_2.png) [@janrikard](https://community.homey.app/u/janrikard)\
**Post date:** [January 29, 2025, 1:54pm UTC](https://community.homey.app/t/app-pro-json-handler-and-manipulator/66317/110 "2025-01-29T13:54:14Z")

</div>

Doesnt understand what i do wrong

 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/f/0/f0b821812d73935fcf2f39ac8d5ef671733019f8.png)

first flowcard

 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/2/f/2f1e24bf2b0a5c68bbb82577aa8066b8cb9aee35.png)

second flowcard

 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/d/0/d051c7b0cfd4949381302d7ddf4e0010a8415598.png)

Ive oalso tested without variables in the first flowcard, still gets the   
/Rikard

---

<div class="post-metadata">

**Author:** ![Arie\_J\_Godschalk](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/arie_j_godschalk/32/63027_2.png) [@Arie\_J\_Godschalk](https://community.homey.app/u/Arie_J_Godschalk)\
**Post date:** [January 29, 2025, 2:08pm UTC](https://community.homey.app/t/app-pro-json-handler-and-manipulator/66317/111 "2025-01-29T14:08:06Z")

</div>

> [@janrikard](#):
>
> second flowcard

Thats not the right flowcard.  
There are flowcards to build json’s with text, numbers and yes/no’s.  
And there is another flowcard to build a json with properties filled with a json as value. Thats the one you need. Please check my last post for the specific flowcard that your need.

---

<div class="post-metadata">

**Author:** ![janrikard](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/janrikard/32/34785_2.png) [@janrikard](https://community.homey.app/u/janrikard)\
**Post date:** [January 29, 2025, 3:20pm UTC](https://community.homey.app/t/app-pro-json-handler-and-manipulator/66317/112 "2025-01-29T15:20:56Z")

</div>

Thank you very much.  
With the right flowcard it works perfectly

/Rikard

---

<div class="post-metadata">

**Author:** ![Adam\_Oakes](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/adam_oakes/32/124123_2.png) [@Adam\_Oakes](https://community.homey.app/u/Adam_Oakes)\
**Post date:** [March 17, 2026, 6:57pm UTC](https://community.homey.app/t/app-pro-json-handler-and-manipulator/66317/113 "2026-03-17T18:57:44Z")

</div>

Newby to Homey Pro and JSON

I’m looking to read a json url and found the JSON handler app but am I correct in thinking this doesn’t read a url, just parses it?

I was going to use the http get app but that’s not supporting homey pro.

I’m trying not to use the advanced flows for now so what is the best way please (with app or not) to read a json url, parse it and then I can display values.

thank you ☺

---

<div class="post-metadata">

**Author:** ![Peter\_Kawa](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/peter_kawa/32/173848_2.png) [@Peter\_Kawa](https://community.homey.app/u/Peter_Kawa)\
**Post date:** [March 17, 2026, 7:44pm UTC](https://community.homey.app/t/app-pro-json-handler-and-manipulator/66317/114 "2026-03-17T19:44:34Z")

</div>

Hi Adam,

This is possible with onboard logic cards

 ![Screenshot_20260317_204327_Ecosia](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/a/b/aba2f7e533fa95c0d1d8de97e211a3c8e080d6e7.jpeg)  
(the Homeyscript card is completely optional)

Complete flow and background:  
[https://community.homey.app/t/app-pro-sysinternals-shows-homey-s-system-internals/78650/226](https://community.homey.app/t/app-pro-sysinternals-shows-homey-s-system-internals/78650/226)

Here’s a bunch of interesting JSON parsing Q&A:  
[https://community.homey.app/search?context=topic&context\_id=145181&q=parse%20json&skip\_context=true](https://community.homey.app/search?context=topic&context_id=145181&q=parse%20json&skip_context=true)

---

<div class="post-metadata">

**Author:** ![Adam\_Oakes](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/adam_oakes/32/124123_2.png) [@Adam\_Oakes](https://community.homey.app/u/Adam_Oakes)\
**Post date:** [March 17, 2026, 8:35pm UTC](https://community.homey.app/t/app-pro-json-handler-and-manipulator/66317/115 "2026-03-17T20:35:57Z")

</div>

Thank you.

is this only available with the advanced flows? Not ventured there yet as most of what i need I prefer in the mobile/tablet app.

Thanks, Adam

---

<div class="post-metadata">

**Author:** ![Peter\_Kawa](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/peter_kawa/32/173848_2.png) [@Peter\_Kawa](https://community.homey.app/u/Peter_Kawa)\
**Post date:** [March 17, 2026, 11:13pm UTC](https://community.homey.app/t/app-pro-json-handler-and-manipulator/66317/116 "2026-03-17T23:13:45Z")

</div>

No problem, Adam.

Yes, only with advanced flow.  
Because the standard flow has no options to pass the result of a “Then” card per tag to the next card; plus there’s no “Parse JSON …” card available because of that.

 ![Screenshot_20260318_000252_Homey](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/1/8/18999b4f870c2159f6a30da647022ada369e0bf3.jpeg)

.  
I work with Advanced flow on my tablet most of the time, using local account + web app, or my.homey.app.  
It only needs an additional BT or USB mouse, to be able to use key functionality, like line drawing and dragging (a selection of) cards around.

---

<div class="post-metadata">

**Author:** ![widameista](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/widameista/32/23333_2.png) [@widameista](https://community.homey.app/u/widameista)\
**Post date:** [May 4, 2026, 8:22pm UTC](https://community.homey.app/t/app-pro-json-handler-and-manipulator/66317/117 "2026-05-04T20:22:02Z")

</div>

Maybe you can help.

i’m trying to get a status for a shelly switch via the new shelly api.

The resulting json looks like:

[{“id”:“e4b3231fada4”,“type”:“relay”,“code”:“S3SW-001X8EU”,“gen”:“G2”,“online”:1,“status”:{“switch:0”:{“temperature”:{“tC”:33.51,“tF”:92.32},“id”:0,“source”:“SHC”,“output”:false,“\_attrs”:{“inputs”:[0]}}},“settings”:{“switch:0”:{“id”:0,“name”:null,“in\_mode”:“follow”,“in\_locked”:false,“initial\_state”:“on”,“auto\_on”:false,“auto\_on\_delay”:60,“auto\_off”:false,“auto\_off\_delay”:60}}}]

the value i’m interested in is:

 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/2/1/21f244565d51ce90fa752c35a9b304192ad9feca.png)

according to my research the path should be:  
$[\*].status.switch:0.output  
but this doesnt work ☹

 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/1/2/12148ab953dd55e7e455962d90b4429136a63672.png)

the result is a little “x”.

no Idea where my error is ?!

Thank you

---

<div class="post-metadata">

**Author:** ![robertklep](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/robertklep/32/160628_2.png) [@robertklep](https://community.homey.app/u/robertklep)\
**Post date:** [May 5, 2026, 4:47am UTC](https://community.homey.app/t/app-pro-json-handler-and-manipulator/66317/118 "2026-05-05T04:47:31Z")

</div>

> [@widameista](#):
>
> $[\*].status.switch:0.output

Try this:

```auto
$[*].status['switch:0'].output

```

---

<div class="post-metadata">

**Author:** ![Arie\_J\_Godschalk](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/arie_j_godschalk/32/63027_2.png) [@Arie\_J\_Godschalk](https://community.homey.app/u/Arie_J_Godschalk)\
**Post date:** [May 5, 2026, 6:37am UTC](https://community.homey.app/t/app-pro-json-handler-and-manipulator/66317/119 "2026-05-05T06:37:43Z")

</div>

> [@widameista](#):
>
> the result is a little “x”.

Could you show the result?

Because if you have the hp2023 or hp2026, and the requested value is False, you would get an red X as symbol.

---

<div class="post-metadata">

**Author:** ![widameista](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/widameista/32/23333_2.png) [@widameista](https://community.homey.app/u/widameista)\
**Post date:** [May 5, 2026, 7:21am UTC](https://community.homey.app/t/app-pro-json-handler-and-manipulator/66317/120 "2026-05-05T07:21:32Z")

</div>

that was the right tipp, if i set a bool variable to the result the variable is correct!  
Thank you

---

<div class="post-metadata">

**Author:** ![widameista](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/widameista/32/23333_2.png) [@widameista](https://community.homey.app/u/widameista)\
**Post date:** [May 5, 2026, 5:35pm UTC](https://community.homey.app/t/app-pro-json-handler-and-manipulator/66317/121 "2026-05-05T17:35:38Z")

</div>

correct, where do i learn how to format those json stuff in the correct manner?

[Previous page](https://community.homey.app/t/app-pro-json-handler-and-manipulator/66317.md?page=5)

[Next page](https://community.homey.app/t/app-pro-json-handler-and-manipulator/66317.md?page=7)
