JSON-LD to łatwy w użyciu format danych powiązanych oparty na formacie JSON, który definiuje pojęcie context, aby określić słownik typów i właściwości. Gmail obsługuje dane JSON-LD osadzone w dokumentach HTML za pomocą @contextschema.org, jak w tym przykładzie:
<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>
Pełne specyfikacje i wymagania dotyczące składni JSON-LD znajdziesz na stronie json-ld.org. Możesz też użyć naszego narzędzia Schema Validator, aby wypróbować JSON-LD i przetestować znaczniki.
[null,null,["Ostatnia aktualizacja: 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."]]],[]]