RankMath adding escaped and unreadable schema

Viewing 7 replies - 1 through 7 (of 7 total)
  • Hello,

    Thank you for contacting Rank Math and sorry for any inconvenience that might have been caused due to that.

    The escaped schema is completely normal. You can test the validity of the page schema on the structured data testing tool here: https://search.google.com/structured-data/testing-tool/u/0/

    Looking forward to helping you. Thank you.

    ​​​​​​​

    It seems that there’s an extra ‘[‘ and ‘]’ in the script that makes their system unable to decode the JSON and detect the correct data.

    Here’s an example of a good script format without the square brackets:

    <script type="application/ld+json">{"@context":"https:\/\/schema.org","@type":"Article","headline":"How to Buy Right-Hand-Drive Cars in the USA","description":"We all know that most of the world drives in the right lane of traffic as opposed to the left. We Americans and most of Europe poke fun at the UK for drivi","datePublished":"2013-06-06T15:43:20+00:00","dateModified":"2018-12-11T20:40:12+00:00","publisher":{"@type":"Organization","name":"Automoblog","logo":{"@type":"ImageObject","url":"https:\/\/www.automoblog.net\/wp-content\/uploads\/2019\/10\/Automoblog-icon-512xx.png"}},"mainEntityOfPage":{"@type":"WebPage","@id":"https:\/\/www.automoblog.net\/2013\/06\/06\/import-right-hand-drive-car\/"},"author":{"@type":"Person","name":"Chris Burdick"},"image":{"@type":"ImageObject","url":"https:\/\/www.automoblog.net\/wp-content\/uploads\/2013\/06\/2003-Nissan-Skyline-GTR.jpeg","width":800,"height":442}}</script>

    Let me know what we can do about this, thank you!

    Hello,

    Thank you for contacting Rank Math today.

    I have raised this problem with our developers and we will be getting back to you in a short while.

    Looking forward to helping you. Thank you.

    ​​​​​​

    Hi Chris,

    I do not see any issue with the code in the URL you shared.
    https://search.google.com/structured-data/testing-tool/u/0/#url=https%3A%2F%2Fwww.automoblog.net%2F2019%2F10%2F27%2Fautomoblog-book-garage-f1-mavericks%2F

    Where exatctly are you seeing the issue?

    And the original issue here is that Ezoic’s Big Data Analytics does not recognize it as valid schema either: https://www.ezoic.com/big-data-analytics/

    Hello,

    And the original issue here is that Ezoic’s Big Data Analytics does not recognize it as valid schema either: https://www.ezoic.com/big-data-analytics/

    Can you please give us some more details? Do you get any errors or warnings when you try to analyze the schema in Big Data Analytics?

    Looking forward to helping you. Thank you.

    Hi Pratik, the details – according to the JSON validator – are that the schema is not valid.

    The error is “Error parsing schema: Unexpected token encountered when reading schema. Expected StartObject, Boolean, got StartArray. Path ”, line 1, position 1.”

    Without the square brackets, it validates fine.

Viewing 7 replies - 1 through 7 (of 7 total)

You must be logged in to reply to this ticket.