JSON + ld结构化数据的网站管理员工具验证

时间:2014-06-17 10:10:31

标签: asp.net json google-analytics google-webmaster-tools rich-snippets

我正在为产品页面使用结构化数据标记。并使用json + ld并将脚本标记放在标题部分。

enter image description here

脚本部分用两行标记。当我在http://json-ld.org/playground/index.html中验证JSON段时,它会提供正确的输出。但是当我使用Google网站管理员工具对其进行验证时,它并未向我显示内容。 http://www.google.com/webmasters/tools/richsnippets

请帮助我确定任何问题。我想我已经做好了。

有关详细信息,我发布了JSON网段。

<script type="application/ld+json"> {
"@context": "http://schema.org",
"@type": "Product",
"productID": "mpn:20AV002YMB",
"description": "Whether you re an overachiever or an up-and-comer, ThinkPad laptops are the tools you need. From the thin-and-light wonder to the heavy-duty mobile workstation, they re built, tested and enhanced for reliability, durability and speed. Enjoy superior web conferencing on your L540, which includes a low-light sensitive 720p HD webcam with wide-angle viewing.",
"url": "http://www.abc.lk/lenovo/business-notebook/thinkpad-l540-core-i5-4200m-4gb-500gb-15-6in-1080p-dvdrw-win7-pro-win8-pro-azb/20av002ymb/product-details/m852r253.aspx",
"name": "ThinkPad L540 Core i5-4200m / 4GB 500GB 15.6in 1080p Dvdrw Win7 Pro / Win8 Pro Azb",
"image": "https://www.abc.lk/ProductImages/images/M852R253.jpg",
"model": "ThinkPad   L540",
"manufacturer": { 
"name": "Lenovo",
"url": "http://www.abc.lk/en/lenovo"
 }, 
"offers": { 
"@type": "Offer",
"availability": "http://schema.org/OutOfStock",
"price": "706.97",
"priceCurrency": "EUR"
 } 
}
</script>

谢谢

2 个答案:

答案 0 :(得分:3)

Google网站管理员工具不支持JSON-LD(撰写本文时)但谷歌搜索确实如此。

您可以查看此主题以获取更多信息:

https://productforums.google.com/forum/#!topic/webmasters/9lzzOw2W-dk

并使用Google的beta标记测试程序发送电子邮件:

https://www.google.com/webmasters/markup-tester/(也适用于网页HTML) - 您的JSON在此验证

我知道这是一个旧帖子,但我认为对于寻找这些人的答案的人来说,这可能是有用的。

答案 1 :(得分:0)

现在Google已经创建了一个可以检测RDFa和JSON-LD的实用程序(也许是Microdata,Haven还没试过。)

https://developers.google.com/webmasters/structured-data/testing-tool/