JSONata object creation (with $each?)

Welcome...

try this thread, it may lead to what you want..