Hi @Anonymous ,
From the comments on this article there seems to be the same error, it need to make sure all pairs are sequential when creating JSON in SSMS, to ensure that all the pairs with the same object are together
https://blog.sqlauthority.com/2016/06/29/sql-server-error-fix-msg-13601-working-json-structure/
Now that you are solved your own problem, please do not forget to mark as accepted answer so it can be helpful for other community members with same questions.
-------------
If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.