Good day, I really need someone's help, please. I am trying to dynamically generate schema for the news article section. When I test it using the rich results tool, everything looks fine, but google console returns the following error: 'unparsable structured data'. I presume I have to wrap the code up in JS, but I am not very strong in this, will appreciate your help, please. Thanks very much for looking into this for me.
The screenshot of the jsonld script
