79382881

Date: 2025-01-23 23:40:50
Score: 0.5
Natty:
Report link

To output a string array such as:

[
  "1: 34.45",
  "2: 21.67"
]

try: Account.Order.Product#$i.[$join([$string($i+1),': ', $string(Price)])]

To output an object array such as:

[
  {
    "1": 34.45
  },
  {
    "2": 21.67
  }
]

try: Account.Order.Product#$i.{ $string($i + 1): Price }

JSONata playground: https://jsonatastudio.com/playground/9b835d23

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Vlad Dimov