llVn0YjMLG9Y1gAZwSUYezIfBPNnRB1JIi7LpqAJ

How to Implement a Single JSON-LD Schema Script for Better SEO

Learn how to place multiple objects in one application/json-ld script tag. Perfect your structured data with this guide by Jeff Jack.
Programmer writing programming mark script on the virtual screen.

Have you ever noticed how adding multiple Schema.org structured data snippets to your website usually means creating several separate <script type="application/ld+json"> tags?

That was something I kept running into on my own site. Every time I added another Schema.org object, I ended up creating another JSON-LD script block. After a while, having multiple separate script tags started feeling unnecessarily repetitive and messy.

I also wondered if combining everything into a single JSON-LD script might help keep the page cleaner and slightly more optimized. While I’m not claiming to be an SEO expert, reducing unnecessary clutter and simplifying code structure generally feels like a better approach overall.

At first, I honestly thought combining multiple Schema.org objects into a single JSON-LD script was not possible. But after spending quite a bit of time searching online, I eventually discovered that it can actually be done using an array structure.

This method allows you to place multiple Schema.org objects inside one application/ld+json script tag instead of creating separate ones for each object.

Credit goes to Jeff Jack, who shared this approach in the comments section of Will Hattman’s post titled “How to Combine Multiple Schema.org Itemtype Declarations in a Single Script.”

Here is the example format:

[
{
"@context":"http://schema.org/",
"url":"https://www.example.com/",
…
},
{
"@context":"http://schema.org/",
"url":"https://www.isentress.com/",
…
},
{
"@context":"http://schema.org/",
"url":"https://www.isentress.com/",
…
}
]

Instead of separating every Schema.org declaration into multiple script blocks, you simply place each object inside a single JSON array.

I personally tested this setup using Google’s Structured Data testing tools and encountered no validation problems.

You can test your own implementation here:

https://developers.google.com/search/docs/advanced/structured-data

Why This Method Can Be Useful

  • Keeps your structured data cleaner and more organized
  • Reduces the number of separate JSON-LD script tags on the page
  • Makes schema management easier when handling multiple object types
  • Helps simplify large Blogger or website templates

Final Thoughts

If your website uses multiple Schema.org structured data objects, combining them into a single JSON-LD array can help make your code cleaner and easier to manage.

While the SEO impact may be minimal, organizing your structured data properly can still improve maintainability and reduce unnecessary clutter inside your HTML source.

Hopefully, this helps simplify your Schema.org setup just like it did for mine.

Source(s):
  1. Hattman, W. (2017, March 22). How to combine multiple Schema.org Itemtype declarations in a single script. UpBuild. https://www.upbuild.io/blog/how-to-combine-multiple-schema-org-itemtype-declarations-in-a-single-script/
  2. Search Engine Land. (2020, April). mark html schema structured data [Photograph]. Retrieved from https://searchengineland.com/figz/wp-content/seloads/2020/04/mark-html-schema-structured-data-SS_1089903890-1920x1080-1.jpg
Post a Comment
Please read our comment policy guidelines before posting.