1

I've looked at several threads and can't figure out why I'm getting the error mentioned in the subject line. I've checked quote marks (") and commas (,). What is causing this?

<script type="application/ld+json">
{
  "@context": "https://schema.org",
  "@type": "BlogPosting",
  "mainEntityOfPage": {
    "@type": "WebPage",
    "@id": "https://www.stand8.io/insights/case-study-uat-automation-improves-coverage-with-auditable-results"
  },
  "headline": "How UAT Automation Improves Coverage With Auditable Results",
  "image": "https://www.stand8.io/static/032c98f33798e1d79227069fd9dcec1b/f10a9/STAND8_RGB.png",  
  "author": {
    "@type": "Organization",
    "name": "STAND 8",
    "url": "https://www.stand8.io/"
  },  
  "publisher": {
    "@type": "Organization",
    "name": "STAND 8",
    "logo": {
      "@type": "ImageObject",
      "url": "https://www.stand8.io/"
    }
  },
  "datePublished": "2022-09-27"
}
</script>

Parse error on line 1: < script type = "app ^ Expecting 'STRING', 'NUMBER', 'NULL', 'TRUE', 'FALSE', '{', '[', got 'undefined'

10
  • Not clear where you are getting this error, but did you try with just the JSON part, starting with {, without the HTML part (the <script ...> and </script> enclosing)? Commented Sep 27, 2022 at 20:54
  • Thanks for the tip, unfortunately, it didn't work. I got it from a Schema Markup generator, Merkle, and it validates on that site, but not in the editor. It does need "ld+json". Odd... Commented Sep 28, 2022 at 0:33
  • Nothing wrong with the markup. It's a long shot, but could it be to do with the copy/paste from that site? I'd an issue a few years ago with sample code copied from a webpage that turned out to contain some sort of invisible characters. (Perfectly legitimate site, it just had odd formatting), I eventually worked it out by manually deleting and replacing every single space which removing the offending characters I couldn't see. Might be worth a try? Commented Sep 28, 2022 at 2:57
  • 2
    What software is giving your this error? Is this from a browser? Is it from a command line application? Is it from a web based validation tool? Without knowing the context, in which you are getting this error, it is very hard to advise you. Commented Sep 28, 2022 at 9:07
  • 1
    I've looked at a few other schema markup generators and they all start with <script type="application/ld+json"> Commented Sep 28, 2022 at 15:13

0

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.