JSON-LD explained for personal websites

20 hours ago (hawksley.dev)

> It can aid web crawlers in understanding the semantic structure of your site, qualifying you for richer link previews, and even potentially improving your search ranking.

This is fighting the last war, to stretch a metaphor.

As far as I and my WWW site are concerned, Google has nowadays switched to giving people lengthy LLM-generated versions of my stuff, with errors, above pointing people to my actual stuff. 'Breadcrumbs' and getting a pretty display name instead of the domain name, don't address the fact that Google de-prioritizes all of that, pretty tweaks or no, nowadays.

This is a lot of effort for stuff that people visiting my actual site directly will never see, and which people using Google will not find above the fold of its own massively LLM-ized version of stuff.

  • If you want a world where the data you present like this matters, seed it.

    Even if google doesn't use it, the collective internet applying this kind of metadata makes the web fertile for non-LLM-scraping competitors to provide an alternative option.

    Rolling over to google only ensures that they remain dominant, with a high bar for competitors, and driving them to use the same technologies.

    • Like other commenters have said, this is 25 years too late, and it's made even more irrelevant by modern tech.

      "The Semantic Web" and all related ideas were always a failure. The metadata quickly got out of date, was never correct in the first place, was only ever implemented on a teeny minority of sites, and always suffered from bad actors where the metadata didn't match the content.

      Heck, even before LLMs I'd argue that Google won because they were the best at organizing vast amounts of unstructured data. With LLMs it's even more pointless to have the author generate this metadata - better to have an LLM generate it based on what visitors can actually see when they visit the site.

      6 replies →

    • That was for the previous, high-trust internet (high trust they providing info benefited you not high trust for security). It's low trust now. You likely benefit from providing wrong information.

    • Interestingly, there is llms.txt (like robots.txt) which is a new emerging standard to aid AI in crawling and gathering data from your website.

      1 reply →

  • No kidding. Our own business now comes up with this in a Google search:

      an $STATE-based IT firm that specializes in building practical AI workflows and information management solutions for midwestern businesses. Operating with an agile, fixed-fee engagement model, the company focuses on avoiding enterprise bloat while delivering concrete results.
    

    I did not know we were now offering "practical AI workflows".

    It then mixes in the name of a competitor with a similar (but certainly not the same) business name, and lists me as a principal. On the plus side, it only lists our contact info since the other people have their contact info hidden behind a "book an engagement" form.

    • > mixes in the name of a competitor

      If I were your competitor and saw that your listing includes my business name but your contact info, you might be getting a letter from my lawyer. Have you let Google know they're putting you at legal risk?

      1 reply →

  • Yep. For years we loaded up web sites with "microdata" tags and attributes in the hope that they would drive traffic.

    All it did was train Google's AI so people would never leave Google.

    • Considering that LLMs will give increasingly better sources for their stuff you still want to make it easy for Google to index your stuff.

      Also keep in mind if your site is better indexed by crawlers you can literally influence future LLMs

      13 replies →

  • I have now started including Google in the "bots get a 10GB zipbomb when they hit the site".

    They add nothing of value, now, and only cause more problems.

For rich link previews, OpenGraph[0] is much more often supported than JSON-LD.

For seo purpose, the kind of JSON-LD a search engine will support is very specific and limited. You are far better consulting the targetted search engine's documentation (Google[1], Bing[2]) and following that. Anything else is a waste of time.

Outside of search engines, again, without a specific purpose, JSON-LD is mostly useless. If you have a specific need that requires JSON-LD, go ahead and include the data you know will be useful. Including anything else is like shouting into the void.

IndieWeb[3] does use structured data but considers JSON-LD a DRY violation and uses Microformats[4] instead.

0: https://ogp.me

1: https://developers.google.com/search/docs/appearance/structu...

2: https://www.bing.com/webmasters/help/marking-up-your-site-wi...

3: https://indieweb.org/

4: https://microformats.org/

I would encourage people who have the pragmatic bent to read about JSON-LD from the Google documentation for web sites;

https://developers.google.com/search/docs/appearance/structu...

You’ll also notice that a lot of the information is relevant to only a small subset of sites. Rotten Tomatoes can publish the critic rating for movies using JSON-LD, but that’s not relevant for me (even if I write a review for a movie).

JSON-LD is nice because it’s easy and it is actually used by search engines. Yes, it can duplicate information in the web page itself, but I think the dream of perfectly annotating information so it only appears exactly once in your document is, well, a dream of spherical cows and massless ropes. It takes human effort to make a webpage and I am ok with a little duplication in the final product. My <h1> duplicates information in <title> anyway.

  • Fedi review sites (neodb/reviewdb, bookwyrm) make use of JSON-LD in a big way. Their entire data federation is based on ActivityStreams and JSON-LD, and so is the review data they get authors to share on their federation along with legacy sites such as goodreads. They're also considerate of proper RDF mappings (context namespace, RDF-friendly encoding of collections, etc.).

  • You can use the JSON-LD for your movie reviews even if you're not a big site. I use it on my site for reviews (books, games, movies) and it seems to show up in most search engines with the star rating etc.

  • 403. That’s an error.

    Your client does not have permission to get URL /search/docs/appearance/structured-data/intro-structured-data from this server. That’s all we know.

Some additional information, what you actually want to implement for every website is Structured Data, using the Schema.org vocabulary.

JSON-LD is one of the ways to do this. There's also RDFa and Microdata.

I used this article and can recommend it when I first learned about it: https://neilpatel.com/blog/get-started-using-schema/

You can try exploring what data to add with this tool: https://technicalseo.com/tools/schema-markup-generator/

The full list can be found on the schema.org site: https://schema.org/docs/schemas.html

we use JSON-LD on our SaaS and it made a noticeable difference for rich snippets. the FAQ Page schema in particular, google started showing our FAQ answers directly in search results within a week of adding it. one thing i learned the hard way: keep the FAQ answers in the JSON-LD identical to what is viseble on the page. google will ignore schema if the text doesn't match the page content.

Do these attributes actually help with search engine visibility or do they just make it easier for search engines to keep users from leaving the search page? Honest question here.

  • Googly started showing sublinks into my site when I added json ld. So that was cool.

  • If you have a business site, the JSON-LD can be used to feed data to maps platforms. Address, hours, phone, menus.

We have semantic HTML, but for some weird reason we need to yet again re-express the semantic meaning of our website in bespoke weird JSON in a script tag that the browser won't process.

  • Microdata is also a thing, and if I'm not mistaken supports the same vocabulary as JSON-LD (schema.org is a good resource).

    That said, JSON-LD has the default for a while now, much like how we largely abandoned REST for RPC. I'm not actually sure if microdata is still supported by all the important parsers today, I've defaulted to using LD for any site I've built for clients, especially ecommerce sites where I want Google Search exposure.

    Edit: its worth noting the comparison with semantic HTML. Semantic HTML helps define the structure of the markup but not real world context like "this is a product for sale" or "this is a train schedule."

    • HTML markup designed for presentation doesn't always map well to the relationships JSON-LD is used to describe which I imagine is probably why Microdata didn't work out. I have an idea which might use it, but it is a simple use case that doesn't try do too much. Microdata requires the agent supports a more complex HTML parser, Finding a script tag in the document head is probably simpler.

      I wouldn't dismiss REST because of RCP though. HTTP and HTML's success probably relate to how Roy Fielding's REST constraints kept the HTTP protocol lean and extendable. It is more like RCP is being used as a layer over top of REST because of HTTP's and HTML's success as being good technologies for web scale.

      4 replies →

  • I have used JSON-LD in my own websites and found that it fills a separate need from semantic HTML. Your semantic HTML will specify things that the browser processes, like the title and headings. The JSON-LD data is metadata, like date created, date updated, tags, authorship. These things can be expressed in the HTML using micro data, but I stopped using micro data because JSON-LD was easier.

    The JSON-LD I populate from the same data that I use to generate my site, and I use the JSON-LD metadata to generate things like index pages (list of blog posts from 2024, all posts related to topic X, etc). The main consumers of JSON-LD are search engines.

    If you are interested in getting offended, then think about how we are also putting OpenGraph metadata in our web pages. Two different metadata formats for the same page.

    • Structured data exists yo pass the metadata. Issue with it is that of might impact the way your html needs to be structured, this can be messy.

  • I don’t think you have understood the article enough. You can use Schema.org/FOAF/WikiData/etc. ontologies in HTML without JSON-LD and the script tags.

  • What I see as the ideal would be a world where servers and browsers could do content negotitation, and have browsers attempting first to request only the json-ld from the website and using its own internal renderer format.

  • Semantic HTML doesn't cover what JSON-LD and other microformats cover.

    From the article alone: what are the semantic elements for a person? A breadcrumb list? A software application? A blog? A blog posting?

    Semantic HTML is there to aid humans using screen readers to navigate through generic elements like "navigation" or "article".

There is a fine balance after which the symbiosis turns into exploitation. Websites trying to get visibility with the help of search engines was mutually beneficial to a large degree. However this is altogether going in a direction where the website owner is getting nothing for their sweat work.

Super useful article, wish that had existed in my seo days.

I had misunderstood the type field, because to me I was often just linking to a webpage, even if it is for a saas, the marketing page is still a webpage.

In the old days (a few weeks ago) you could read google’s SEO recommendations and guidelines. This was great for debunking many a recommendation from clueless SEO agencies trying to force requirements on dev teams.

Is there any similar recommendations available for their new, LLM, world?

Thanks, I've seen these JSON-LD "updates" in Codex and Claude way to long without understanding what it's all about :)

It seems useful but then we have to manage similar metadata in multiple places, so hygiene around consistency becomes important

Since 2024, the traffic to our content based marketing pages is down about 85%. What I don't get is how Google has not been terribly impacted as well by the rise of the zero click SERP. Their SERP ad revenue, which is click-based, must be down by a similarly egregious amount. That being said, I've been unable to find any published numbers to refute or confirm this thesis.

Imagine if we had managed to deliver on the original promises of the Semantic Web, instead of having these locked-in platforms. How incredibly useful all that linked and structured data would've been to humans and LLMs at the same time.

https://www.w3.org/2001/sw/

If only there was some kind of markup language for websites where different tags could have different meanings. If only.

A bit disappointing that (IIUC) for the common parsers you have to say everything twice, in HTML and in the accompanying JSON-LD form even though RDFa exists for the exact purpose of letting you point at the values already present in your markup. (Admittedly RDFa is perhaps too flexible for its own good when you just want to mark up some stuff, but if you’re writing a full parser anyway dealing with a bit of excessive cleverness in the format should not be too bad.)

  • And then there is https://schema.org/ It's the item* attributes, e.g.: https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/... Also Dublin Core in <meta> tags. Why do they keep adding conflicting meta data formats to HTML!?!

    • They don't conflict; they were designed to work together. You can have schema.org (in JSON-LD, RDFa, or micro data) on the same page as Dublin Core, etc.

      For example, there's no explicit property in schema's Person type [1] for a nickname. But the FOAF standard does [2].

      Just add FOAF to the JSON-LD context:

          {
            "@context": {
              "@vocab": "https://schema.org/",
              "foaf": "http://xmlns.com/foaf/0.1/",
              "pronouns": "https://schema.org/pronouns" 
          }
      
      
      

      You now use the FOAF nickname property:

          "@type": "Person",
            "givenName": "Timothy",
            "familyName": "Berners-Lee",
            "foaf:nick": "TBL",
      

      You can do the same thing with Dublin Core, DBPedia, etc.

      [1]: https://schema.org/Person

      [2]: https://xmlns.com/foaf/spec/#term_nick

    • I think if you are using Dublin Core, it’s because you’re a library. Maybe I am off the mark, but that is the sense I get from this—not all these standards should be used for all pages on the web.

      I think you should just think about what metadata you actually care about, and the main metadata I care about (choose your own list) is authorship, publish date, last update, subject keywords, thumbnail (OpenGraph 1200x630), and summary.

      There’s a long list of additional metadata that I could put in my webpages because there are standardized ways to do it, but, why bother?

    • To be fair schema.org and dublin core say “when a property is name ‘title’ it means …” and you can expect to find the following properties…

      Json-ld says: if you want to know whether the “title” property means the schema.org or the dublin core variant then you can find out which it is by <json-ld algorithm>

      So you’d always use json-ld _with_ schema.org or something.

  • IMO this is going overboard. Any time you are duplicating data from HTML into JSON-LD, consider just omitting that data from JSON-LD, unless the data isn’t consistently present in HTML (because it is a bitch to be consistent about this stuff).

    I tried using RDFa and liked the property that it was theoretically less redundant, but switched to JSON-LD because it JSON-LD is just easier to get working. And this is speaking as somebody who uses a hand-rolled static site generator—the issue here is that whether information is present in the raw HTML is something contextual, and if something isn’t present in the HTML then you need to put it somewhere else or it’s not mechanically parseable from the page. Like, to a human reader, a post on “Alice’s Blog” is assumed to be authored by Alice, so I may omit the “by Alice” text from the document, and then I would want to put that metadata in the page some other way.

    Putting the metadata in JSON-LD lets me just be dumb about it. The metadata is always in JSON-LD, and the HTML may or may not contain an explicit representation of that same metadata. Easy.

    But the JSON-LD does not need to contain the URL of the page (which is <link rel=canonical>) or the title (which is in <title>), for example.

    • > I tried using RDFa and liked the property that it was theoretically less redundant, but switched to JSON-LD because it JSON-LD is just easier to get working.

      For me, it depends on the project. For personal projects, I tend to use RDFa; otherwise, JSON-LD.

  • I solved this by building Web Components out of them. Basically the HTML needs just a custom template tag, which includes a script with the JSON-LD payload. The component corresponding to the template, initializes itself based on that data. See here for an example: https://releases.bruta.link/releases/2026/June/21

    Granted, all of this is not for SEO purposes, but part of the ActivityPub ecosystem, which also uses JSON-LD for data encoding.