# Null and None on JSON dicts

**URL:** <https://forum.inductiveautomation.com/t/null-and-none-on-json-dicts/97651>\
**Category:** Ignition\
**Tags:** ignition81\
**Created:** [October 23, 2024, 8:53am UTC](https://forum.inductiveautomation.com/t/null-and-none-on-json-dicts/97651 "2024-10-23T08:53:21Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![danielps1818](https://avatars.discourse-cdn.com/v4/letter/d/ecae2f/32.png) [@danielps1818](https://forum.inductiveautomation.com/u/danielps1818)\
**Post date:** [October 23, 2024, 8:53am UTC](https://forum.inductiveautomation.com/t/null-and-none-on-json-dicts/97651/1 "2024-10-23T08:53:21Z")

</div>

Hello everyone!

We are currently working in a http request-response system.  
We are sending a dict in a JSON format, however we have encounter that whenever we send a message it gets send with `None` writed instead of `null` and this makes the other system crash.

Is there any way of automatically changing the `None` to `null` inside of a dict so is universally compatible?

Is a bit strange because inside of the Ignition environment using `None` is perfectly ok, but the moment we send a message it doesn't work.

Any idea or tip is appreciated.  
Thanks in advance!

---

<div class="post-metadata">

**Author:** ![pascal.fragnoud](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pascal.fragnoud/32/24728_2.png) [@pascal.fragnoud](https://forum.inductiveautomation.com/u/pascal.fragnoud)\
**Post date:** [October 23, 2024, 9:49am UTC](https://forum.inductiveautomation.com/t/null-and-none-on-json-dicts/97651/2 "2024-10-23T09:49:47Z")

</div>

> [@danielps1818](#):
>
> We are sending a dict in a JSON format, however we have encounter that whenever we send a message it gets send with `None` writed instead of `null`

How do you do that ? Are you converting to json yourself ? how ?

---

<div class="post-metadata">

**Author:** ![danielps1818](https://avatars.discourse-cdn.com/v4/letter/d/ecae2f/32.png) [@danielps1818](https://forum.inductiveautomation.com/u/danielps1818)\
**Post date:** [October 23, 2024, 9:51am UTC](https://forum.inductiveautomation.com/t/null-and-none-on-json-dicts/97651/3 "2024-10-23T09:51:49Z")

</div>

Just figure it out.

I simply did system.util.jsonEncode(\<type 'dict'\>) and it gives you a string but with JSON format, where the None are transformted to nulls
