Operations (sample payloads)

Main operations
Copy

Transform JSON
Copy

Transform some JSON using JSONata.

Sample Input

1
{
2
"data": {
3
"employees": [
4
{
5
"name": "John Doe",
6
"age": 30,
7
"department": "Sales",
8
"salary": 50000
9
},
10
{
11
"name": "Jane Smith",
12
"age": 35,
13
"department": "Marketing",
14
"salary": 60000
15
},
16
{
17
"name": "Bob Johnson",
18
"age": 28,
19
"department": "IT",
20
"salary": 55000
21
}
22
]
23
},
24
"query": "employees.{\"name\": name, \"annualSalary\": salary * 12}"
25
}

Sample Output

1
{
2
"result": [
3
{
4
"name": "John Doe",
5
"annualSalary": 600000
6
},
7
{
8
"name": "Jane Smith",
9
"annualSalary": 720000
10
},
11
{
12
"name": "Bob Johnson",
13
"annualSalary": 660000
14
}
15
]
16
}