# Bug in JSONata inputs or just me?

**URL:** <https://discourse.nodered.org/t/bug-in-jsonata-inputs-or-just-me/98914>\
**Category:** Core Development\
**Tags:** jsonata\
**Created:** [2 September 2025 14:40 UTC](https://discourse.nodered.org/t/bug-in-jsonata-inputs-or-just-me/98914 "2025-09-02T14:40:14Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![TotallyInformation](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/totallyinformation/32/31_2.png) [@TotallyInformation](https://discourse.nodered.org/u/TotallyInformation)\
**Post date:** [2 September 2025 14:40 UTC](https://discourse.nodered.org/t/bug-in-jsonata-inputs-or-just-me/98914/1 "2025-09-02T14:40:14Z")

</div>

![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/8/0/8039a63e59fb1868061bb3884ba7510baf94bc87.png)

I think this JSONata input should be outlined in red and should make the node invalid. Because the properties are not enclosed in double-quotes as they should be for valid JSON.

Am I right or not?

---

<div class="post-metadata">

**Author:** ![knolleary](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/knolleary/32/3_2.png) [@knolleary](https://discourse.nodered.org/u/knolleary)\
**Post date:** [2 September 2025 14:45 UTC](https://discourse.nodered.org/t/bug-in-jsonata-inputs-or-just-me/98914/2 "2025-09-02T14:45:49Z")

</div>

It is not an invalid JSONata expression.

Given what you have written, it will use the value of `msg.random` as the key name in the object.

---

<div class="post-metadata">

**Author:** ![TotallyInformation](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/totallyinformation/32/31_2.png) [@TotallyInformation](https://discourse.nodered.org/u/TotallyInformation)\
**Post date:** [2 September 2025 14:47 UTC](https://discourse.nodered.org/t/bug-in-jsonata-inputs-or-just-me/98914/3 "2025-09-02T14:47:01Z")

</div>

Ah, OK. Well actually, it returns nothing I'm afraid.

No problem, so just me then. 😃

---

<div class="post-metadata">

**Author:** ![knolleary](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/knolleary/32/3_2.png) [@knolleary](https://discourse.nodered.org/u/knolleary)\
**Post date:** [2 September 2025 14:52 UTC](https://discourse.nodered.org/t/bug-in-jsonata-inputs-or-just-me/98914/4 "2025-09-02T14:52:16Z")

</div>

If you don’t have `msg.random` set, then nothing will get set 😉

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [1 November 2025 14:52 UTC](https://discourse.nodered.org/t/bug-in-jsonata-inputs-or-just-me/98914/5 "2025-11-01T14:52:39Z")

</div>

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