Using an array and not naming convention of a nested object makes more sense here. If fields are named the same its eaiser to index them and operate objects.
So I will suggest you try to use a 2 command approach rather than having a bad structure.
Best regards,
Pavel