<script type="application/ld+json">
{"@context" : "http://schema.org",
"@type" : "LocalBusiness",
"name" : "mywebsite.com",
"description": "Lorem ipsum dolor sit amet",
"image" : "http://mywebsite.com/image.jpg",
"telephone" : "987654321",
"email" : "info@mywebsite.com",
"address" : {
"@type" : "PostalAddress",
"streetAddress" : "123 Main Street",
"addressLocality" : "Big City",
"addressCountry" : "Country"
},
"url" : "http://mymainwebsite.com/",
"sameAs" : ["http://www.linkedin.com/",
"http://instagram.com",
"http://youtube.com/"],
"aggregateRating" : {
"@type" : "AggregateRating",
"ratingValue" : "4.5",
"bestRating" : "5",
"worstRating" : "1"
},
</script>
I have created this code for a web schema, but when I attempt to test it on Google's Structured Data Testing Tool, an error message is displayed:
JSON-LD: There was an error parsing your JSON-LD.
How can I rectify this? What could be causing the error in this code?