JSON-LD

JSON-LD คือรูปแบบข้อมูลลิงก์ที่ใช้ JSON ที่ใช้งานง่ายซึ่งกำหนดแนวคิดของ context เพื่อระบุคำศัพท์สำหรับประเภทและพร็อพเพอร์ตี้ Gmail รองรับข้อมูล JSON-LD ที่ฝังในเอกสาร HTML โดยมี @context เป็น schema.org ตามตัวอย่างต่อไปนี้

<script type="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 และแก้ไขข้อบกพร่องของมาร์กอัปได้ด้วย