How to exclude null value field in JSON objects of JSON Array?

Hi, I am trying to create JSON array field that consists of some JSON objects.
I want to delete some properties in the JSON objects randomly.

Like this:
[{
“array”: [
{
“id”: 1,
“first_name”: “Ciro”,
“last_name”: “Le Teve”
“email”: “tmoles0@nasa.gov
},
{
“id”: 2,
“first_name”: “Amby”
“email”: “aerrett1@unblog.fr
},
{
“id”: 3
}
]
}]

But even though I uncheck “include null values”, I got

[{
“array”: [
{
“id”: 1,
“first_name”: “Ciro”,
“last_name”: “Le Teve”
“email”: “tmoles0@nasa.gov
},
{
“id”: 2,
“first_name”: “Amby”
“last_name”: null,
“email”: “aerrett1@unblog.fr
},
{
“id”: 3,
“first_name”: null,
“last_name”: null,
“email”: null
}
]
}]

How to exclude null properties?

I used this schema:
https://www.mockaroo.com/20e81300

Thanks

1 Like

Did you find a way to resolve your issue?

Hello
This is possible by unchecking the box include null values