79548935

Date: 2025-04-01 18:56:11
Score: 1
Natty:
Report link

Does this work?

$spread(){ $keys($): $sum($.*) }

First, it splits all objects's keys into separate arrays, then groups them based on the key and aggregates the values.

JSONata Playground: https://jsonatastudio.com/playground/8a13fa7e

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