CTE – Accumulating order position JSON data