Map Keys By Index
1 min
Maps keys of a given list to a specified order in the given map. Define and empty string to omit a key in the output
e.g. "first_key","second_key","","third_key"
API Definition
Merge Two JSON Object List on Key API
Call the following API:
POST
https://orca.pathfix.com/functions/list/map_keys_by_pos
json
{
"input": [
{
"name": "Bruce",
"company": "Wayne Enterprises",
"villains": "joker",
"city": "Gotham"
},
{
"name": "Clark",
"company": "n/a",
"villains": "zod",
"city": "Smallville"
}
],
"map": [
"owner",
"enterprise",
"",
"location"
]
}200
{
"output": [
{
"owner": "Bruce",
"enterprise": "Wayne Enterprises",
"location": "Gotham"
},
{
"owner": "Clark",
"enterprise": "n/a",
"location": "Smallville"
}
],
"size_in_bytes": 311.0
}404
{
"message": "error"
}