json-ld-valid
यह क्या करती है
यह स्किल पेज के स्ट्रक्चर्ड डेटा ब्लॉक में सिंटैक्स की गलतियाँ और ज़रूरी फ़ील्ड की कमी जाँचती है। यह साइट मालिकों और डेवलपर्स के लिए है जो सर्च में रिच रिज़ल्ट चाहते हैं।
कब इस्तेमाल करें
- ✓जब Google Search Console में आपके रिच रिज़ल्ट न दिख रहे हों।
- ✓जब आप पेजों में आर्टिकल, प्रोडक्ट, FAQ या ब्रेडक्रम्ब मार्कअप जोड़ें।
- ✓जब आप कोड या टेम्पलेट से स्ट्रक्चर्ड डेटा बनाते हों।
Skill का लिंक
https://github.com/thedaviddias/Front-End-Checklist/blob/main/skills/json-ld-valid/SKILL.mdइसे कॉपी करके अपने AI (Claude, ChatGPT या Cursor) में पेस्ट करें और निर्देशों का पालन करने को कहें।
कैसे इस्तेमाल करें
सबसे आसान तरीका: मैसेज कॉपी करके अपने AI में पेस्ट करें। वह skill पढ़कर निर्देशों का पालन करेगा।
पेस्ट करने के लिए तैयार मैसेज
Claude Code, Codex या Cursor के लिए: प्रोजेक्ट फ़ोल्डर में चलाएँ और skill इंस्टॉल हो जाएगी।
SKILL.md डाउनलोड करें और अपने एजेंट के skills फ़ोल्डर में रखें।
AI से क्या माँगें: उदाहरण
“क्या आप मेरा स्ट्रक्चर्ड डेटा जाँच सकते हैं और बता सकते हैं कि रिच रिज़ल्ट क्यों नहीं दिख रहे?”
हर हफ़्ते 5 नई skills, 1 मिनट में पढ़ें।
यह कैसे काम करती है
एजेंट हर JSON-LD ब्लॉक पढ़ता है, context और type जाँचता है, और उस type की ज़रूरी प्रॉपर्टी की पुष्टि करता है। सिंटैक्स की गलतियों और छूटे फ़ील्ड के सुधार सुझाता है, और Google के Rich Results Test से जाँच की सलाह देता है।
तकनीकी सामग्री (मूल SKILL.md)
लेखक का मूल टेक्स्ट, अंग्रेज़ी में, सीधे GitHub से।
Use valid JSON-LD structured data
Invalid JSON-LD is silently ignored by Google — there are no error messages in search results, only the absence of rich results. Invalid structured data means no eligibility for rich results (stars, FAQs, breadcrumbs, etc.) that increase click-through rates.
Quick Reference
- JSON-LD must be valid JSON, reference
@context: 'https://schema.org', and include all required properties for the chosen@type - Invalid JSON (unclosed brackets, missing commas) causes the entire block to be silently ignored by Google
- Validate with Google's Rich Results Test before deploying structured data changes
Check
Find all <script type='application/ld+json'> elements on the page. For each: (1) Attempt to parse the content as JSON — flag syntax errors. (2) Verify @context is set to 'https://schema.org'. (3) Verify @type is a valid schema.org type. (4) For the detected type, check required properties are present (e.g., Article requires headline, author, datePublished; Product requires name; FAQPage requires mainEntity). (5) Run through Google's Rich Results Test API if available.
Fix
- Parse the JSON-LD with
JSON.parse()— fix any syntax errors (trailing commas, single quotes, missing brackets). - Ensure
@contextis exactly"https://schema.org"(not"http://schema.org"or omitted). - Verify the
@typevalue against schema.org types. - Add required properties for the type:
- Article: headline, author (with @type Person and name), datePublished
- Product: name (and ideally offers, description)
- FAQPage: mainEntity array with Question and acceptedAnswer
- BreadcrumbList: itemListElement array with ListItem, position, name, item
- Validate at https://search.google.com/test/rich-results
- Validate JSON syntax at https://jsonlint.com
Explain
Google uses JSON-LD structured data to generate rich results — enhanced search result formats that include stars, images, expandable Q&As, and other features. Invalid JSON-LD is ignored entirely: no rich results are generated, and no error is reported to you. Only by testing with the Rich Results Test can you discover validation failures. Correct, complete JSON-LD is a prerequisite for rich result eligibility.
Code Review
Extract all <script type='application/ld+json'> element contents. Run JSON.parse() on each — catch and report parse errors. Validate that @context equals 'https://schema.org'. Check @type against a whitelist of common valid types. For each type, validate required properties are present and non-empty. Report the first validation error found for each block.
For full implementation details, code examples, and framework-specific guidance,
see references/rule.md.
Rule page: https://frontendchecklist.io/rules/seo/json-ld-valid
अक्सर पूछे जाने वाले सवाल
क्या Google अमान्य स्ट्रक्चर्ड डेटा की गलती बताता है?
स्किल के अनुसार अमान्य JSON-LD चुपचाप अनदेखा कर दिया जाता है, इसलिए रिच रिज़ल्ट का न दिखना ही एकमात्र संकेत होता है।
एक आम सिंटैक्स समस्या कौन-सी है?
स्किल ट्रेलिंग कॉमा, सिंगल क्वोट और छूटे ब्रैकेट को आम कारण बताती है।
मार्कअप कैसे जाँचें?
स्किल बदलाव प्रकाशित करने से पहले Google के Rich Results Test से जाँचने की सलाह देती है।
जानकारी
लेखक का मूल विवरण
Use when generating or auditing any `<script type='application/ld+json'>` blocks, implementing structured data for articles, products, FAQs, breadcrumbs, or local businesses, or investigating why rich results are not appearing in Google Search Console.
लोकप्रियता
- GitHub स्टार
- 75k
- रैंकिंग में स्थान
- #2906
- लाइसेंस
- MIT
- अपडेट की गई
- 31/10/2026
कमेंट
- …
इस repository की और skills
frontendchecklist
75kकमांड-लाइन टूल से फ़्रंटएंड कोड और लाइव पेजों को एक्सेसिबिलिटी, स्पीड, SEO और सिक्योरिटी के 380 से ज़्यादा नियमों से जाँचती है।
frontend-checklist-global
75kफ़्रंटएंड प्रोजेक्ट को Front-End Checklist के सभी 386 नियमों से ऑडिट करती है, और हर मिली समस्या का ठोस समाधान देती है।
404-page
75kजाँचती है कि आपका गुम पेज उपयोगी लिंक देता है और सही 404 स्टेटस लौटाता है, ताकि भटके हुए विज़िटर रास्ता ढूँढ सकें।
about-page
75kजाँचती है कि आपकी साइट पर एक साफ़ About पेज है जो बताता है कि उसे कौन चलाता है, ताकि विज़िटर और सर्च इंजन का भरोसा बढ़े।
मिलती-जुलती skills
competitive-platform-analysis
280kयह competitors को समझने में मदद करता है। यह गहरी analysis से पहले competing companies को पहचानता है, उन्हें श्रेणियों में बाँटता है और छाँटता है।
competitive-report-structure
280kयह विस्तृत competitor reports बनाता है। यह जानकारी को मिलाकर पूरी market की तस्वीर और सुझाव दिखाता है, और टीम को एक दिशा में लाने में मदद करता है।
lead-intelligence
280kआपके एजेंट को ज़रूरी लोगों को खोजने और उनसे संपर्क करने में मदद करता है। यह leads का विश्लेषण करता है, तरीके सुझाता है और email व social media के ज़रिए outreach मैनेज करता है।