Convert List To JSON Output
2 min
Convert a JSON Object List to JSON using the values of the input list and substitution defined in the output template. It works similarly to the Convert List To JSON (Based on Values) API except that you can work with multiple property definitions in your output.
API Definition
Convert List to JSON Output
Call the following API:
POST
https://orca.pathfix.com/functions/list/tojsonoutput
{
"input": [
{
"name": "property1",
"value": "value1",
"question": "question1",
"answer": "answer1"
},
{
"name": "property2",
"value": "value3",
"question": "question2",
"answer": "answer2"
}
],
"output": {
"{{name}}": "{{value}}",
"{{question}}": "{{answer}}"
}
}