Structured data must be in JSON format only

Good evening,
This is my first post.
I get the error message above although I tested my data with Google and the code seems correct. Basically, it is an aggregate review score and individual reviews of a tourist accommodation. Seems that when I save it to the page with the error message, all the reviews are not “seen” by google. The code is long (12 pages) but many repeats of the same review section (about 20 reviews).
Can someone help me?
Thanks
Bruno

Please provide more details so that the community can provide assistance. What is your code? What are you trying to do?

I think I have answered both questions in my original post and one of the first thing it says in the code of conduct of this forum is NOT to post long pages of code… As previously stated, my code is 12 (word) pages long and I can’t post it

Since the original post, WIX does not give me the “structured data” message anymore but when I go to save my changes, it gives me Error 1020. I opened a ticket.