Convert List Format
2 min
Convert a list from one format to another
Processing Rule | Description |
|---|---|
drop_nulls | Will remove all values from the JSON where the value is null |
replace_empty_with_null | Will replace all JSON property values that have and empty string ("") with null |
| |
API Definition
Convert List Format API
Call the following API:
POST
https://orca.pathfix.com/functions/list/tolist
{
"input": [{
"email": "[email protected]",
"name":"John Doe"
}, {
"email": "[email protected]"
}],
"output": {
"emailAddress": "{{email}}",
"fullName": "{{name}}"
},
"rule": {
"drop_nulls": true,
"replace_empty_with_null":true
}
}