RankMath adding escaped and unreadable schema

#19467
Viewing 15 replies - 1 through 15 (of 17 total)
  • Michael Davis
    Rank Math pro

    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.

    ​​​​​​​

    Chris
    Rank Math free

    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!

    Michael Davis
    Rank Math pro

    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.

    ​​​​​​

    Todd
    Rank Math free

    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?

    Chris
    Rank Math free

    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.

    Chris
    Rank Math free

    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.

    Chris
    Rank Math free

    Hi there, any updates on this?

    Thank you

    Hi Chris,

    Apologies for the delay.

    I am checking with my colleague about this and I’ll be in touch in a short while.

    Thank you for your continued patience.

    Fuad
    Rank Math free

    I also found that Wikipedia cannot parse the schema data and I have to manually enter it all when citing this website as a reference.

    So that’s three separate services that cannot read this Schema.

    Todd
    Rank Math free

    Christopher,

    We have noted this down for improvement. We are working on this and will push an update when it is ready.

    It might take a while though and I would really appreciate your patience in this matter.

    Fuad
    Rank Math free

    This is a core feature of your plugin and literally all you need to do to make this Schema markup valid is remove those square brackets. What’s the issue here?

    Is there a way I can just do this by modifying the plugin files?

    Thanks,
    Chris

    Chris
    Rank Math free

    Hi Todd,

    Here’s one example. Paste the code into the JSON validator: https://www.jsonschemavalidator.net/

    When I paste the whole thing (with square brackets) I get a parse error: https://i.gyazo.com/a85668191883c064630d7c8a584044d3.png

    When I remove the brackets, it parses fine: https://i.gyazo.com/f494efbb8cbe2dba96de58aca45a62ea.png

    Can’t we just remove those square brackets?

    Thanks,
    Chris

    Todd
    Rank Math free

    Hi Chris,

    We are going to issue an update with the fix very soon as I said in my last post.

    I would really appreciate your patience in this matter.

    Todd
    Rank Math free

    Hi Chris,

    I wanted to let you know that we have fixed this internally and we are going to release the fixed version very soon. We would really appreciate your patience in this matter.

    Thank you.

    Hello,

    Since we did not hear back from you for 15 days, we are assuming that you found the solution. We are closing this support ticket.

    If you still need assistance or any other help, please feel free to open a new support ticket, and we will be more than happy to assist.

    Thank you.

Viewing 15 replies - 1 through 15 (of 17 total)

The ticket ‘RankMath adding escaped and unreadable schema’ is closed to new replies.