You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
first section will replace original prices keys with new ones, forming an array of objects with only specified keys (with new key names and values from that old keys).
second shift will bring every line mentioned to new top-level json
Specks to transform array to array. array length will be dynamic.
eg:
{
"prices": [
{
"name": "Journey Mileage",
"type": "BASE",
"tax": "V20",
"amount": 30,
"rate": 2.5,
"unit": "miles",
"charge": 75
}
]
}
output:
{
"charges": [
{
"amount": "2095",
"currency": "EUR",
"type": "price_base"
}
]
}
The text was updated successfully, but these errors were encountered: