I've defined google schema in my web site, and it's working fine when I'm testing the following urls in google structured data test:
but when I test urls like bellow that contain special characters like $amp; the schema is totally incorrect and full of error:
I couldn't find what the problem was. when I open the pages in the browser everything is fine, however in structured data test tool and in google search console there is error and problem. this problem is not limited to this certain in any other page when there is special character in the url the same problem happens. any help will be appreciated.