Account.Order {
`Product Name`: $.{
"Price": Price,
"Qty": Quantity,
"ProductID": ProductID
}
} ~> $each(function($v) {
{
"Price": $sum($v.Price),
"Qty": $v[0].Qty,
"ProductID": $v[0].ProductID
}
})
Playground link: https://jsonatastudio.com/playground/b99c58af