【发布时间】:2018-02-03 05:38:58
【问题描述】:
我必须将 JSON-LD 数据的多个 script 元素注入我的应用程序的 head,所有这些都属于同一个 @type。这是由于从不同的数据源中提取了不同的字段。
这种重复会导致任何问题吗?
<script type="application/ld+json">
{
"@type": "Organisation",
"name": "John Smith"
}
</script>
<script type="application/ld+json">
{
"@type": "Organisation",
"city": "London"
}
</script>
我希望这将被谷歌简单地翻译:
<script type="application/ld+json">
{
"@type": "Organisation",
"name": "John Smith",
"city": "London"
}
</script>
是吗?
【问题讨论】:
标签: html json-ld structured-data