# Create JSON - omit null values?

**URL:** <https://community.make.com/t/create-json-omit-null-values/15353>\
**Category:** Questions\
**Tags:** filters, mapping\
**Created:** [September 4, 2023, 12:04pm UTC](https://community.make.com/t/create-json-omit-null-values/15353 "2023-09-04T12:04:05Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![etfz](https://avatars.discourse-cdn.com/v4/letter/e/e95f7d/32.png) [@etfz](https://community.make.com/u/etfz)\
**Post date:** [September 4, 2023, 12:04pm UTC](https://community.make.com/t/create-json-omit-null-values/15353/1 "2023-09-04T12:04:05Z")

</div>

Hi,

I’m using a module which accepts JSON input. I have created a data structure that’s mapped from a previous module. Now, I don’t always need to map all fields, and the unmapped fields are serialized as `null`, but the target module API won’t accept this; I need to omit those fields entirely. I understand I can create a new data structure without those fields, but I don’t really want to do that. Is there any option or filter I can use in order to omit null values?

---

<div class="post-metadata">

**Author:** ![etfz](https://avatars.discourse-cdn.com/v4/letter/e/e95f7d/32.png) [@etfz](https://community.make.com/u/etfz)\
**Post date:** [September 4, 2023, 12:19pm UTC](https://community.make.com/t/create-json-omit-null-values/15353/2 "2023-09-04T12:19:46Z")

</div>

Using the `ignore` keyword on all unused fields seems to do what I need. Still interested in a more automatic solution, however.

---

<div class="post-metadata">

**Author:** ![samliew](https://dub1.discourse-cdn.com/flex013/user_avatar/community.make.com/samliew/32/13327_2.png) [@samliew](https://community.make.com/u/samliew)\
**Post date:** [September 5, 2023, 2:19am UTC](https://community.make.com/t/create-json-omit-null-values/15353/3 "2023-09-05T02:19:24Z")

</div>

That’s what the `ignore` property is for actually.

---

<div class="post-metadata">

**Author:** ![Make\_Bot](https://dub1.discourse-cdn.com/flex013/user_avatar/community.make.com/make_bot/32/14661_2.png) [@Make\_Bot](https://community.make.com/u/Make_Bot)\
**Post date:** [December 27, 2023, 9:07am UTC](https://community.make.com/t/create-json-omit-null-values/15353/5 "2023-12-27T09:07:18Z")

</div>


