Article snippet in json
Mark E.
<script type="application/ld+json">
{
"@context": "http://schema.org",
"@type": "Article",
"mainEntityOfPage": {
"@type": "WebPage",
"@id": "https://example.com/article"
},
"headline": "Sample Article Headline",
"image": {
"@type": "ImageObject",
"url": "https://example.com/article-image.jpg",
"height": "800",
"width": "1200"
},
"datePublished": "2022-01-01",
"dateModified": "2022-01-02",
"author": {
"@type": "Person",
"name": "John Doe",
"url": "https://example.com/article"
},
"publisher": {
"@type": "Organization",
"name": "Example.com",
"logo": {
"@type": "ImageObject",
"url": "https://example.com/logo.png",
"width": "600",
"height": "60"
}
}
}
"description": "This is a sample article description.",
"articleBody": "This is the main text of the article. It can include paragraphs, headings, images, and other elements.",
"keywords": "article, sample, JSON"
}
</script>
This JSON snippet includes the required properties for an Article schema, such as headline
, datePublished
, author
, publisher
, description
, and articleBody
. It also includes additional properties such as image
, dateModified
, and keywords
.