AMP Invalid JSON Issue

Posted in: Newspaper
Post count: 7

Hi,

I am getting the below error on google console: The script tag contains invalid JSON that cannot be parsed..

I have verified the AMP pages, It says “Valid AMP Pages” but Google is still complaining about it. Please see few of the URLs:

https://www.lyricsstop.com/music-directors/anu-malik/?amp
https://www.lyricsstop.com/actors/ileana-dcruz/?amp
https://www.lyricsstop.com/actors/gajraj-rao/?amp

Please help me in resolving this issue.

Thanks

Post count: 6

I have the same problem. Using version 10.2

Example URLs:
1)

2)

Post count: 18283

Hello !

Please make sure that you are inserting your analytics code properly as you can see here:
https://prnt.sc/r5km9m ; https://ampforwp.com/tutorials/article/how-to-troubleshoot-the-script-tag-contains-invalid-json-that-cannot-be-parsed-error-in-amp-validator/

Thank you !

Post count: 16

already did it and still got the issue.

Post count: 16

The way you (Mr. Vlad S) shared still doesn’t work.

Post count: 7

I have not put any analytics and this is not mandatory so why am i getting this error? In My case amp analytics section is blank.

Post count: 7

Google is complaining for below two code:

<amp-state id=”td_amp_menu_state”><script type=”application/json”>
{
“visible”: false
}
</script></amp-state

and

<script type=”application/json”>
{
“visible”: false,
“focus”: false,
“s”: “”
}
</script>

Where is this coming from if I have left my analytics section blank?

Please help me in resolving this issue.

Thanks…!!

Post count: 18283

Hello !

This has been reported as an AMP plugin bug. Please update your AMP plugin.

Thank you !

Post count: 6

Thanks Vlad. Please send us an update when they fix the AMP plugin and post an update.

Viewing 9 posts - 1 through 9 (of 9 total)
The forum ‘Newspaper’ is closed to new topics and replies.