Hi,
I am working with an API (onparallel.com) that has some issues where it submits replies into fields that are empty instead of just ignoring empty properties in the request which causes big issues.
See the example below:
All properties that are empty should be removed from the request - eg. the property office_address_entity and office address 4' (which areempty) should be removed from the request completely.
EXAMPLE
From this:
{
"name":"John Doe",
"age": 30,
"email": "",
"address": null,
"phone": "123-456-789"
}
so the result is this:
{
"name":"John Doe",
"age": 30,
"phone": "123-456-789"
}
And there can be many of such properties that are empty. And there are up to 200 properties that might or might not be empty so using a manual search and replace action is not an option.
I tried using the regex replace text formatter here and have issues:
I am working with an API (onparallel.com) that has some issues where it submits replies into fields that are empty instead of just ignoring empty properties in the request which causes big issues.
See the example below:
All properties that are empty should be removed from the request - eg. the property office_address_entity and office address 4' (which areempty) should be removed from the request completely.
EXAMPLE
From this:
{
"name":"John Doe",
"age": 30,
"email": "",
"address": null,
"phone": "123-456-789"
}
so the result is this:
{
"name":"John Doe",
"age": 30,
"phone": "123-456-789"
}
And there can be many of such properties that are empty. And there are up to 200 properties that might or might not be empty so using a manual search and replace action is not an option.
I tried using the regex replace text formatter here and have issues: