shags38
Junior Member
- Apr 3, 2019
- 196
- 25
I am trying to markup an article and the Google Markup Tester Tool is throwing this error;
Missing ',' or '}' in object declaration.
when it does this it shades out a particular character but the character is correct and the whole line is correct - everything seems OK but then again I am new at this.
here is the script I am using;
<!-- JSON-LD markup generated by Google Structured Data Markup Helper. -->
{
"@context" : "http://schema.org",
"@Type" : "Article",
"name" : "page title",
"author" : {
"@Type" : "Person",
"name" : "name"
},
"datePublished" : "2019-02-16",
“headline” : “headline”,
"image" : "https://mysite/images/475.gif",
"articleSection" : "text",
"articleBody" : "text",
"publisher" : {
"@Type" : "Organization",
"name" : "name"
“logo”: {
“@type”: “ImageObject”,
“url”: “https://mysite/images/logo.png”,
}
}
</script>
Can anyone pick any errors in this script? There are two '}' at the end of the script but only one '{' in the whole script ..... should there be another one somewhere??
The Google Structured Data Markup Helper does not allow for the tag "headline" : but without it it throws an error so I added it
cheers
- Uncategorized Errors1 ERROR
Missing ',' or '}' in object declaration.
when it does this it shades out a particular character but the character is correct and the whole line is correct - everything seems OK but then again I am new at this.
here is the script I am using;
<!-- JSON-LD markup generated by Google Structured Data Markup Helper. -->
{
"@context" : "http://schema.org",
"@Type" : "Article",
"name" : "page title",
"author" : {
"@Type" : "Person",
"name" : "name"
},
"datePublished" : "2019-02-16",
“headline” : “headline”,
"image" : "https://mysite/images/475.gif",
"articleSection" : "text",
"articleBody" : "text",
"publisher" : {
"@Type" : "Organization",
"name" : "name"
“logo”: {
“@type”: “ImageObject”,
“url”: “https://mysite/images/logo.png”,
}
}
</script>
Can anyone pick any errors in this script? There are two '}' at the end of the script but only one '{' in the whole script ..... should there be another one somewhere??
The Google Structured Data Markup Helper does not allow for the tag "headline" : but without it it throws an error so I added it
cheers