: Getting errors "Missing ',' or '}'", "Unexpected token" and "got 'undefined'" for my JSON-LD I have got some JSON-LD here and getting errors which I can't fathom out and you guys are the ones
I have got some JSON-LD here and getting errors which I can't fathom out and you guys are the ones with the know how :)
Here's the errors I'm getting (code at bottom):
Missing ',' or '}' in object declaration (at the sameAs - line 7)
When I check it on: json.parser.online.fr/
I get the String parse:
1 errorJS eval fails
SyntaxError: Unexpected token & in JSON at position 0
When I check it on: jsonlint.com/
I get:
Error: Parse error on line 1:
< script type = 'app
^
Expecting 'STRING', 'NUMBER', 'NULL', 'TRUE', 'FALSE', '{', '[', got 'undefined'
I don't understand why as it looks (to my untrained eye!) that the script type is what everyone uses?
<script type='application/ld+json'>
{
"@context": "schema dot org url",
"@type": "JewelryStore",
"name": "A.K. Campbell and Sons",
"url": "company website jewellers url/”,
"sameAs": [
"youtube channel about url”, "google plus page url", "facebook url", "linkedin url", "twitter url"
],
"logo": "photo url",
"image": "image url",
"description": "A.K. Campbell and Sons Jewellers of Kirkcaldy provides unique and bespoke gold, silver and diamond jewellery and jewellery services including valuations, pearl re-stringing and jewellery cleaning.",
"address": {
"@type": "PostalAddress",
"streetAddress": "277 High Street",
"addressLocality": "Kirkcaldy",
"addressRegion": "Fife",
"postalCode": "KY1 1JH",
"addressCountry": "UK"
},
"geo": {
"@type": "GeoCoordinates",
"latitude": "56.11261",
"longitude": "-3.15585"
},
"hasMap": "my map url - wasn't allowed to post it",
"openingHours": "Mo, Tu, We, Th, Fr, Sa 10:00-16:00",
"contactPoint": {
"@type": "ContactPoint",
"contactType": "customer service",
"telephone": "+44 01592 264305"
}
}
</script>
More posts by @Heady270
1 Comments
Sorted by latest first Latest Oldest Best
You use ” instead of " two times:
Instead of
"url": "company website jewellers url/”,
it has to be
"url": "company website jewellers url/",
Instead of
"sameAs": [
"youtube channel about url”, "google plus page url", "facebook url", "linkedin url", "twitter url"
],
it has to be
"sameAs": [
"youtube channel about url", "google plus page url", "facebook url", "linkedin url", "twitter url"
],
Terms of Use Create Support ticket Your support tickets Stock Market News! © vmapp.org2024 All Rights reserved.