# Noob creating a JSON object

**URL:** <https://forum.inductiveautomation.com/t/noob-creating-a-json-object/36612>\
**Category:** Ignition\
**Created:** [July 11, 2020, 9:33pm UTC](https://forum.inductiveautomation.com/t/noob-creating-a-json-object/36612 "2020-07-11T21:33:09Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![andonalerts](https://avatars.discourse-cdn.com/v4/letter/a/df788c/32.png) [@andonalerts](https://forum.inductiveautomation.com/u/andonalerts)\
**Post date:** [July 11, 2020, 9:33pm UTC](https://forum.inductiveautomation.com/t/noob-creating-a-json-object/36612/1 "2020-07-11T21:33:09Z")

</div>

What am I doing wrong:

x = ‘{ “name”:“John”, “age”:30, “city”:“New York”}’  
y = system.util.json.Decode(x)  
y[“age”] = 31

ERROR Line 2: object has no attribute JSON

---

<div class="post-metadata">

**Author:** ![KMuldoon](https://avatars.discourse-cdn.com/v4/letter/k/839c29/32.png) [@KMuldoon](https://forum.inductiveautomation.com/u/KMuldoon)\
**Post date:** [July 11, 2020, 10:02pm UTC](https://forum.inductiveautomation.com/t/noob-creating-a-json-object/36612/2 "2020-07-11T22:02:48Z")

</div>

The system function is system.util.jsonDecode(), with jsonDecode all together.

[https://docs.inductiveautomation.com/display/DOC80/system.util.jsonDecode](https://docs.inductiveautomation.com/display/DOC80/system.util.jsonDecode)

---

<div class="post-metadata">

**Author:** ![andonalerts](https://avatars.discourse-cdn.com/v4/letter/a/df788c/32.png) [@andonalerts](https://forum.inductiveautomation.com/u/andonalerts)\
**Post date:** [July 11, 2020, 10:48pm UTC](https://forum.inductiveautomation.com/t/noob-creating-a-json-object/36612/3 "2020-07-11T22:48:34Z")

</div>

thankyou thankyou!!! my afternoon is much happier now.

I’ve been studying that manual page all day and did not notice my extra .
