-
My ad and analytics network told me they’re unable to retrieve my articles’ schema and said it’s likely due to the escaped characters in the output: https://i.gyazo.com/4f32757fd9a0a433fe5cd872b00ef36f.png
When I look at other websites their schema doesn’t look like this.
Can this be fixed?
Thanks
-
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%2FWhere 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.
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.
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.
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.
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,
ChrisHi 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,
ChrisHi 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.
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.
The ticket ‘RankMath adding escaped and unreadable schema’ is closed to new replies.