# Can I add jsonObject as a value to a property in a node?

**URL:** <https://community.neo4j.com/t/can-i-add-jsonobject-as-a-value-to-a-property-in-a-node/11285>\
**Category:** Cypher\
**Created:** [October 23, 2019, 11:23pm UTC](https://community.neo4j.com/t/can-i-add-jsonobject-as-a-value-to-a-property-in-a-node/11285 "2019-10-23T23:23:22Z")\
**Posts on this page:** 1\
**Showing post:** 6

<div class="post-metadata">

**Author:** ![clem](https://sea1.discourse-cdn.com/flex021/user_avatar/community.neo4j.com/clem/32/4364_2.png) [@clem](https://community.neo4j.com/u/clem)\
**Post date:** [May 13, 2021, 5:16pm UTC](https://community.neo4j.com/t/can-i-add-jsonobject-as-a-value-to-a-property-in-a-node/11285/6 "2021-05-13T17:16:48Z")

</div>

I think if you look at the python JSON library, it will be clearer.

See: [json — JSON encoder and decoder — Python 3.11.1 documentation](https://docs.python.org/3/library/json.html)

So, if you have a JSON object, you can convert it into a string (using `json.dumps()`) that can be later converted back into a JSON object (using `json.loads()`) .

Stealing from the documentation:

```auto
>>> import json
>>> json.dumps(['foo', {'bar': ('baz', None, 1.0, 2)}])
'["foo", {"bar": ["baz", null, 1.0, 2]}]'

```

and to convert it back:

```auto
>>> import json
>>> json.loads('["foo", {"bar":["baz", null, 1.0, 2]}]')
['foo', {'bar': ['baz', None, 1.0, 2]}]

```

Admittedly, it's a bit of a hack, but you do what you got to do...

---

_[View the full topic](https://community.neo4j.com/t/can-i-add-jsonobject-as-a-value-to-a-property-in-a-node/11285)._
