# JSON parse question in advanced flows

**URL:** <https://community.homey.app/t/json-parse-question-in-advanced-flows/72916>\
**Category:** Apps\
**Tags:** flow\
**Created:** [December 1, 2022, 10:50am UTC](https://community.homey.app/t/json-parse-question-in-advanced-flows/72916 "2022-12-01T10:50:18Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![DannyB](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/dannyb/32/34928_2.png) [@DannyB](https://community.homey.app/u/DannyB)\
**Post date:** [December 1, 2022, 10:50am UTC](https://community.homey.app/t/json-parse-question-in-advanced-flows/72916/1 "2022-12-01T10:50:19Z")

</div>

Hi, I’m trying to parse a JSON object with a logica card (lees topic as JSON) and create a tag from it. This works fine, as long as there is no space in the to be parsed array. Tried everything by adding quotes, double quotes, … but no luck. It returns an error saying : **Lexical error on line 1. Unrecognized text**.  
Any idea how to make this work ? Thanks in advance for your reply.

---

<div class="post-metadata">

**Author:** ![Adrian\_Rockall](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/adrian_rockall/32/13209_2.png) [@Adrian\_Rockall](https://community.homey.app/u/Adrian_Rockall)\
**Post date:** [December 1, 2022, 2:40pm UTC](https://community.homey.app/t/json-parse-question-in-advanced-flows/72916/2 "2022-12-01T14:40:28Z")

</div>

Could you provide an example of the JSON that is failing?

---

<div class="post-metadata">

**Author:** ![DannyB](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/dannyb/32/34928_2.png) [@DannyB](https://community.homey.app/u/DannyB)\
**Post date:** [December 1, 2022, 6:22pm UTC](https://community.homey.app/t/json-parse-question-in-advanced-flows/72916/3 "2022-12-01T18:22:15Z")

</div>

Sure. Here it is.

![afbeelding](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/0/e/0ea2bc64a78a9a3eae40d1f8cf82b5526e315742.png)

---

<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:** [December 1, 2022, 6:43pm UTC](https://community.homey.app/t/json-parse-question-in-advanced-flows/72916/4 "2022-12-01T18:43:33Z")

</div>

Don’t know if you can find the culprit with this tool?

> **[JSON Parser - Best JSON Formatter | JSON Editor](https://jsonparser.org/)**
>
> The best JSON parser online helps you to converts json to a readable. You can do json formatter, json beautifier, json viewer, json editor.

---

<div class="post-metadata">

**Author:** ![DannyB](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/dannyb/32/34928_2.png) [@DannyB](https://community.homey.app/u/DannyB)\
**Post date:** [December 2, 2022, 9:38am UTC](https://community.homey.app/t/json-parse-question-in-advanced-flows/72916/5 "2022-12-02T09:38:50Z")

</div>

Using this tool the parsing works correctly for the array (including the elements with spaces) but doesn’t show the parsing format itself. Furthermore I believe that JSON format can be specific to the tool i.e. Homey Logic in this case.  
So was expecting someone else had run in this issue before.  
Would there somewhere exist a format description of Homey logic in general ?

---

<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:** [December 2, 2022, 9:45am UTC](https://community.homey.app/t/json-parse-question-in-advanced-flows/72916/6 "2022-12-02T09:45:47Z")

</div>

Try this:

```auto
$["Boiler timer"]

```

You can’t use spaces in property accessors [when using dot notation](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Property_accessors).

---

<div class="post-metadata">

**Author:** ![DannyB](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/dannyb/32/34928_2.png) [@DannyB](https://community.homey.app/u/DannyB)\
**Post date:** [December 2, 2022, 9:55am UTC](https://community.homey.app/t/json-parse-question-in-advanced-flows/72916/7 "2022-12-02T09:55:11Z")

</div>

Thanks Robert. This indeed works. Actually I believe I tried this format before (might have been with single quotes though) unsuccesfully, but this now works. Thanks again.

---

<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:** [December 2, 2022, 10:03am UTC](https://community.homey.app/t/json-parse-question-in-advanced-flows/72916/8 "2022-12-02T10:03:54Z")

</div>

I would expect single quotes to work as well.
