Convert a JSON Object from one format to another
2 min
Convert the JSON from one format to the other based on the substitutions from given input into the defined output
Options | Possible Values,Default | Description |
|---|---|---|
replace_if_not_found | yes/no, Default is no | If a specific item is not found in a list it will be replaced by an empty string. e.g. "" |
API Definition
Convert JSON API
Call the following API:
POST
https://orca.pathfix.com/functions/json/replacefrominput
{
"input": {
"first_name":"Bruce",
"last_name":"Wayne",
"email":"[email protected]"
},
"output":{
"name":"{{first_name}} {{last_name}}"
"eml":"{{email}}"
},
"replace_if_not_found":""
}