JSON-LD là một định dạng dữ liệu liên kết dựa trên JSON dễ sử dụng, xác định khái niệm context để chỉ định từ vựng cho các loại và thuộc tính. Gmail hỗ trợ dữ liệu JSON-LD được nhúng trong tài liệu HTML bằng @context của schema.org, như trong ví dụ sau:
<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>
Bạn có thể xem thông số kỹ thuật và yêu cầu đầy đủ về cú pháp JSON-LD trên json-ld.org. Ngoài ra, bạn cũng có thể sử dụng công cụ Trình xác thực giản đồ của chúng tôi để thử JSON-LD và gỡ lỗi mã đánh dấu.
[null,null,["Cập nhật lần gần đây nhất: 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."]]],[]]