Schema Validator 使用教學
結構化資料最常見的問題不是「沒寫」,而是「寫了但錯」。這篇提供一個上線前的驗證流程,確保 JSON-LD 可解析、欄位完整、且與頁面內容一致。
1) 常見錯誤類型
- JSON 語法錯(逗號、多餘引號、未閉合括號)
- 缺少 required properties(例如 name、itemListElement)
- 標註內容與頁面不一致(例如 FAQPage 但頁面沒有 Q/A)
2) 範例:BreadcrumbList
json
{
"@context": "https://schema.org",
"@type": "BreadcrumbList",
"itemListElement": [
{ "@type": "ListItem", "position": 1, "name": "Home", "item": "https://example.com/" },
{ "@type": "ListItem", "position": 2, "name": "Tools", "item": "https://example.com/tools" }
]
}3) 最快流程:貼上 JSON-LD → 修錯 → 再測 rich result
- 打開 Schema 驗證器,貼上你的 JSON-LD。
- 先清掉所有 Error,再評估 Warning 是否影響你的目標 rich result。
- 用 Google Rich Results Test 再確認是否符合顯示條件。
需要生成?用 Schema 生成器 更快。
延伸閱讀
常見問題
驗證與 rich result 的常見誤解。