JSON-LD — это простой в использовании формат связанных данных на основе JSON, который определяет концепцию context для указания словаря для типов и свойств. Gmail поддерживает данные JSON-LD, встроенные в документы HTML с @context в schema.org , как показано в следующем примере:
<scripttype="application/ld+json">
{"@context":"http://schema.org","@type":"Person","name":"John Doe","jobTitle":"Graduate research assistant","affiliation":"University of Dreams","additionalName":"Johnny","url":"http://www.example.com","address":{"@type":"PostalAddress","streetAddress":"1234 Peach Drive","addressLocality":"Wonderland","addressRegion":"Georgia"}}
</script>
Полные спецификации и требования к синтаксису JSON-LD доступны на json-ld.org . Вы также можете использовать наш инструмент проверки схемы , чтобы опробовать JSON-LD и отладить разметку.
[null,null,["Последнее обновление: 2024-12-21 UTC."],[[["JSON-LD is a JSON-based format used for representing linked data on the web, using a `context` to define vocabulary."],["Gmail supports JSON-LD data embedded within HTML documents, specifically utilizing the `schema.org` context for defining types and properties."],["The `@type` key within JSON-LD is reserved and should contain a full type URI or a fragment referencing `http://schema.org/`."],["Developers can refer to json-ld.org for complete specifications and utilize Google's Schema Validator tool for testing and debugging JSON-LD markup."]]],[]]