Aller au contenu
uencoder

Utiliser JSON-LD pour linked données et SEO

JSON-LD (Linked Données) serializes RDF triples en JSON, enabling search engines en understand entity relationships. Utilisé pour Schéma.org structured données.

  1. 1

    JSON-LD represents linked data as JSON with a @context that maps terms to IRIs. It is the recommended format for Schema.org structured data in HTML. Search engines (Google, Bing) parse JSON-LD to understand your content — articles, products, events, reviews — and display rich results.

  2. 2
    Formateur JSON →

    Formater your JSON-LD to ensure valid syntax. The @context, @type, and property names must be correct. Common types: Article, Product, Event, Organization, Person, BreadcrumbList. Format to catch typos and structural errors.

  3. 3
    Validateur JSON →

    Valider the JSON-LD structure. Check that @context is a valid URL (typically "https://schema.org"), @type is a known Schema.org type, and required properties are present. Missing required properties can cause Google to ignore the structured data.

  4. 4

    Embed JSON-LD in HTML as a <script type="application/ld+json"> block in the <head>. Use Google's Rich Results Test to verify. Common patterns: Article (headline, author, datePublished), Product (name, price, availability), BreadcrumbList (for navigation). Use @graph for multiple entities on one page.

Questions fréquentes

JSON-LD vs Microdata vs RDFa?
Google recommends JSON-LD — it is the easiest to implement and maintain. Microdata and RDFa embed structured data in HTML attributes, which is harder to manage. JSON-LD is a separate script block that can be generated server-side and injected.
What is @graph?
@graph is used when a page contains multiple entities. Instead of a single object, use {"@context": "...", "@graph": [entity1, entity2, ...]}. Each entity in the array is a separate linked data node. This is common for pages with multiple products or articles.

Workflows résolvant cette tâche

Convertir la casse de nommage et valider en JSON
Convertir les identifiants en convention de nommage cible, puis valider le résultat en JSON pour confirmer la structure.
PIPELINE
Comparer deux configs YAML via JSON
Convertir les configs YAML en JSON pour une comparaison diff-friendly des valeurs structurées.
PIPELINE
Coder une charge utile JSON pour transport URL
Préparer un Document JSON pour un Paramètre URL: embellir, Coder en Base64, puis encodage pourcent — le inverse exacte de le chaîne de décodage de paramètres imbriqués.
PIPELINE
HJSON en format JSON
Formater HJSON et convertir en JSON standard.
PIPELINE
Formater JS et valider JSON
Formater le code JS puis valider en JSON.
PIPELINE
Formater JSON et calculer une somme de contrôle d'intégrité
Pretty-printer un document JSON et calculer une somme CRC32 pour détecter toute modification ultérieure.
PIPELINE
Minifier et valider JSON
Formater JSON pour inspection et valider sa correction syntaxique en une passe.
PIPELINE
Générer JSON Schema et valider
Générer un JSON Schema à partir de données d'exemple puis valider par rapport à lui.
PIPELINE
Formater JSON et générer une interface TypeScript
Formater un document JSON puis inférer une définition d'interface TypeScript en une chaîne.
PIPELINE
Valider, formater, puis convertir JSON en YAML
Convertir une config JSON (possiblement minifiée) en YAML, capturant les erreurs de syntaxe au premier nœud au lieu de produire un YAML subtilement erroné.
PIPELINE
JSON5 en format JSON
Formater JSON5 et convertir en JSON standard.
PIPELINE
JSONC en format JSON
Formater JSONC (JSON avec commentaires) et convertir en JSON standard.
PIPELINE
Décoder et formater une charge utile JWT
Analyser un token JWT, extraire sa charge utile et formater le JSON pour inspection.
PIPELINE
Analyser chaîne de requête et formater JSON
Analyser une chaîne de requête en paires clé-valeur puis formater en JSON.
PIPELINE
Convertir TOML en JSON
Analyser un fichier de configuration TOML en JSON pour les outils et API attendant une entree JSON.
PIPELINE
Convertir TOML en YAML via JSON
Transformer un fichier de configuration TOML en format YAML, utilisant JSON comme representation intermediaire.
PIPELINE
Decoder un parametre URL imbrique (Base64 JSON)
Derouler un parametre URL transportant du JSON Base64 code URL en JSON formate lisible.
PIPELINE
Generer des interfaces TypeScript depuis YAML
Convertir un document YAML en definitions d'interface TypeScript, utilisant JSON comme format intermediaire.
PIPELINE
Valider et formater YAML
Convertir YAML en JSON pour valider sa structure, puis confirmer que le JSON est bien forme.
PIPELINE

Outils associés