Skip to content

Instantly share code, notes, and snippets.

@danbri
Created September 19, 2019 06:56
Show Gist options
  • Save danbri/9627452ec7dcbe63af9cb5a631acfdf8 to your computer and use it in GitHub Desktop.
Save danbri/9627452ec7dcbe63af9cb5a631acfdf8 to your computer and use it in GitHub Desktop.
<html>
<head>
<title>The Catcher in the Rye</title>
<script type="application/ld+json">
{
"@context":"https://schema.org", "@direction": "ltr" ,
"@type":"Book",
"name" : "The Catcher in the Rye",
"author": {
"@type":"Person",
"name":"J.D. Salinger"
},
"url" : "http://www.barnesandnoble.com/store/info/offer/JDSalinger",
"workExample" : [{
"@type": "Book",
"isbn": "031676948",
"bookEdition": "2nd Edition",
"bookFormat": "https://schema.org/Hardcover",
"potentialAction":{
"@type":"ReadAction",
"target":
{
"@type":"EntryPoint",
"urlTemplate":"http://www.barnesandnoble.com/store/info/offer/0316769487?purchase=true",
"actionPlatform":[
"http://schema.org/DesktopWebPlatform",
"http://schema.org/IOSPlatform",
"http://schema.org/AndroidPlatform"
]
},
"expectsAcceptanceOf":{
"@type":"Offer",
"Price":6.99,
"priceCurrency":"USD",
"eligibleRegion" : {
"@type":"Country",
"name":"US"
},
"availability": "https://schema.org/InStock"
}
}
},{
"@type": "Book",
"isbn": "031676947",
"bookEdition": "1st Edition",
"bookFormat": "https://schema.org/EBook",
"potentialAction":{
"@type":"ReadAction",
"target":
{
"@type":"EntryPoint",
"urlTemplate":"http://www.barnesandnoble.com/store/info/offer/031676947?purchase=true",
"actionPlatform":[
"http://schema.org/DesktopWebPlatform",
"http://schema.org/IOSPlatform",
"http://schema.org/AndroidPlatform"
]
},
"expectsAcceptanceOf":{
"@type":"Offer",
"Price":1.99,
"priceCurrency":"USD",
"eligibleRegion" : {
"@type":"Country",
"name":"UK"
},
"availability": "https://schema.org/InStock"
}
}
}]
}
</script>
</head>
<body>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment