Questions tagged [json-ld]

JSON-LD is a syntax for embedding structured data in HTML5, making use of vocabularies. If the question is about the popular vocabulary Schema.org, use the tag [schema.org].

Filter by
Sorted by
Tagged with
15
votes
2answers
7k views

Should Schema.org Organization data about my company be on every page?

We have added JSON-LD structured data to our website, so Google knows information about our company (company name, url, logo, address, etc.). We worked from the template on Google's documentation. ...
15
votes
1answer
6k views

Any way to validate Schema.org JSON-LD before publishing?

I have a site with a lot of data, and I'm dynamically building JSON-LD data that I think is Schema.org correct. I can't find a dead-on example on Schema.org, and it will take forever if I have to ...
13
votes
2answers
16k views

What is the use of @id in json-ld syntax?

I am really confused what is @id used for in json-ld syntax. Sample from apple.com. What does @id actually represent. Any help would be great? <script type="application/ld+json"> { "@...
9
votes
1answer
4k views

Where is the ideal place in code to use Schema.org markup as JSON-LD?

Where is the best place to put Schema.org markup that uses JSON-LD? Some recommend inside <head> but scripts work inline too. It would be easier in an MVC to put them in the same scope as the ...
8
votes
1answer
6k views

Multiple addresses in JSON-LD Schema.org

I have a site I am creating for a non-profit organization. Their organization has a United States Mailing Address and a Canada Mailing Address. I want to add both addresses with Schema.org (using JSON-...
8
votes
1answer
2k views

Can I mix Microdata and JSON-LD on the same page for different entity

My website is using JSON-LD and Microdata. For example, in BreadcrumbList, I have used Microdata format, and for others (like Organization, TouristAttraction) JSON-LD has been used. Can I mix ...
8
votes
2answers
2k views

Product Snippets with JSON-LD + Schema.org - Are there any live examples in Google index?

** EDIT Feb 2016 - Finally JSON-LD seems to be working now in SERPS, with extremely fast changes-to-index time, assuming you have everything with Google merchant center feeds syncd and linked. Make ...
7
votes
4answers
3k views

Linking external JSON-LD schema (from Schema.org)

I have schemas in JSON-LD as per Schema.org. When it was inline (within <script> tags), the Google structured data testing tool recognised the schema successfully. If I link it externally, for ...
7
votes
2answers
5k views

Which one does Google prefer, Microdata or JSON-LD?

Here Google says they prefer JSON-LD: JSON-LD is the recommended format. Google is in the process of adding JSON-LD support for all markup-powered features. The table below lists the exceptions ...
6
votes
1answer
669 views

Why don't search engines support JSON-LD + Schema.org as seperated endpoints via rel=“alternate” or script src?

So the whole idea of JSON revolves around object->arrays presented in a simple text format. The LD variant is no different. When combined with Schema.org it turns into a flexible display API that many ...
5
votes
1answer
1k views

How do I mark up multi product pages with Schema.org and JSON-LD?

I have a client with two products on one page. However, when I test my mark up, it is only recognising one. <script type="application/ld+json"> { "@context": "http://schema.org/", "@type":...
5
votes
1answer
233 views

Google Job Posting for an unspecified employer

The official content guidelines from Google for a Job Posting mention that the hiringOrganization is required and that "You must include the required properties for your structured data to display in ...
5
votes
1answer
341 views

Google isn't surfacing Events rich snippets in SERP when JSON-LD Structured Data is valid

Google confirms our site has thousands of valid MusicEvent structured data objects presented using JSON-LD, as indicated in the Structured Data section of Webmaster Tools. However, rich snippets for ...
5
votes
3answers
5k views

How to use more than 1 schema.org schema on a web page

How do you add more than one schema to a web page? I am using the Organization and WebSite schemas on my home page. I am writing the markup in JSON-LD format. The Organization schema for the ...
4
votes
1answer
3k views

schema.org/Book with multiple authors using JSON-LD [duplicate]

How do I display multiple book authors using JSON-LD? This question is similar to my original question, but decided to create a different one seeing that 2 different formats are used. Here is my ...
4
votes
3answers
1k views

Microdata & JSON-LD Conflict on the same page or not?

For Wordpress website used Rich-Snippet Plugin, that added schema for pages using Microdata. I also applied Sitelink Search Box, Product schema, Article Schema For the Same site in different pages ...
4
votes
1answer
693 views

Google Structured Data Testing Tool Repeat Error: “The URL could not be rendered. Some markup may be missing.”

When using Google's Structured Data Testing Tool, I consistently get the error: The URL could not be rendered. Some markup may be missing. I have identified and fixed all of the structured data ...
4
votes
1answer
1k views

Schema.org 'CollectionPage' for list of blog posts by specific author

I'm trying to mark up a page and I'm trying to use CollectionPage with a number of blog links on the page. Would this be fine? { "@context":"http://schema.org/", "@type":"CollectionPage", "name"...
4
votes
1answer
171 views

Is JSON-LD supported by Google?

See this page: https://developers.google.com/structured-data/schema-org Google is in the process of adding JSON-LD support to more markup-powered features. So far, JSON-LD is supported for all ...
4
votes
1answer
634 views

Distinguishing Between Organization and Product Reviews (with Schema.org in JSON-LD)

Yesterday we refactored our schema.org/Organization snippet that is found in the header of every page into a schema.org/HomeGoodsStore snippet with included testimonials for our company within it. ...
4
votes
2answers
551 views

“Organization” schema with another schema on the same page

Should I use the Organization schema on each page if I have another schema data, for example Event? Can I use Event and Organization on the same page? Organization code <script type="application/...
4
votes
0answers
148 views

What should be the structure of the URL to enable indexing of location, time specific events? [closed]

I have a website that lists movie showtimes, https://example.com/. I want to use JSON-LD to provide information about ScreeningEvent (from Schema.org). I'd like to index events presented on movie ...
3
votes
2answers
511 views

Google Tag Manager Multiple URL Exceptions not Working

I am using Google Tag Manager to insert my Schema JSON-LD data and as my schema data is presented in the footer it makes sense to use the following: Tag Type > Custom HTML Trigger Type > All Pages ...
3
votes
1answer
2k views

Google SDTT gives error “Missing '}' or object member name.” for my JSON-LD

I am guessing Google structured data testing tool behaves strange. I wrote a code to create JSON-LD for multiple locations for one of my websites. But Google testing tool returns an error: ...
3
votes
1answer
41 views

When referencing an entity from another page, should only @id and @type be specified, or should all necessary attributes be duplicated?

I have multiple web pages in my website; "about" page (e.g.: http://example.com/about/) and "blog" pages (e.g.: http//:example.com/blog/1/). In the "about" page, I have defined authors of the website....
3
votes
2answers
3k views

Do I need JSON-LD on all pages or just the home page?

Below is an example of the JSON-LD I've added to my home page (company name removed). My question, is it generally recommended that this be added to all pages of a site, or just the home page? <...
3
votes
1answer
499 views

Schema.org’s vs. Google’s rules for JobPosting

I was poking around on the Google developer site and came across the Structured Data Markup for Job Posting. I would like to take advantage of Structured Data for my job postings. I plan on using ...
3
votes
1answer
3k views

How to use JSON-LD in my page that already have content?

I have a website that I created just to test my CSS, JS and PHP skills. I have written data in simple HTML tags. Now I heard about Microdata, RDFa and JSON-LD. And Google recommends using JSON-LD for ...
3
votes
1answer
285 views

Adding Information to multiple addresses in schema markup

How do I add information to a multiple address schema markup with JSON-LD? Here is my code: <script type='application/ld+json'> { "@context": "http://schema.org", "@type": "Apartments", "...
3
votes
1answer
27 views

How to structure an array of entries in schema.org/JSON-LD?

I'm implementing schemas for financial information (using JSON-LD), in this case mortgage loans. The example on the bottom of the documentation site https://schema.org/MortgageLoan shows how to ...
3
votes
1answer
436 views

SEO schema.org Breadcrumb with display: none?

Background / Motivation I maintain a Drupal module (Crumbs), that calculates breadcrumbs for a Drupal site. I want to make those breadcrumbs SEO-friendly by using e.g. schema.org metadata semantic ...
3
votes
2answers
512 views

Google SERP's not displaying target/current page in breadcrumbs

I've used Google's example JSON-LD markup to display breadcrumbs in the search results (https://developers.google.com/search/docs/data-types/breadcrumbs). Google shows breadcrumbs in the search ...
3
votes
1answer
69 views

Do AggregateRatings counts in Recipes need to be in Review markup?

If you look at the recipe rich result documentation for aggregateRating, it says to Follow the Review snippet guidelines and list of required and recommended AggregateRating properties. Common ...
3
votes
1answer
326 views

JSON-LD detected by the structured data validation tool, but not by the search console

My problem I have added JSON-LD structured data to my site about a local software conference. The markup is valid in Google's on Structured Data Testing Tool. Structured Data Testing Tool However, ...
3
votes
1answer
554 views

Schema.org WebApplication type for game

I have a web application hosted on a URL. It basically hosts games that students use in school. There are some 100,000 games on it. Is it ok to have the following markup on the game page, for ...
3
votes
0answers
165 views

Google Search Console does ot recognize JSON-LD dynamically added to head in angular app

In my Angular(v1) application, I have a directive that on routeChanging event, remove last added JSON-LDs and add JSON-LD of that page to head element. // .. some codes here angular.element('....
2
votes
1answer
4k views

What is the benefit of ImageObject schema org markup for images?

Is there anything to indicate that marking up images as ImageObjects has any positive effect on indexing or search engine ranking or anything related (eg, rich cards/snippets)? My experience I ...
2
votes
2answers
5k views

NewsArticle not validing: “The attribute image.width has an invalid value.”

I'm using Google's template to mark up my blog and it seems that if I were to change the value of the width/height, it instantly tells me: The attribute image.width has an invalid value. The ...
2
votes
1answer
80 views

Is there a representative logo for Structured Data which can be used on icons?

My suspicion is that the answer very likely is "No." But I thought I'd ask anyway. Various common protocols, standards and technologies have their own logos: e.g. GSM, Email, RSS, WiFi, HTML5, ...
2
votes
1answer
110 views

How to describe pixel width of a VideoObject or MediaObject in Schema.org and JSON-LD?

Using Schema.org vocabulary in JSON-LD, when describing the height and width dimensions of a VideoObject, do I write: "width": "100" or "width": "100px" or "width": { "@type": "...
2
votes
3answers
601 views

Placing LegalService schema on homepage vs. contact page

I am marking up schema.org for a law firm site, the site is a basic 7 page site detailing a law firm that has multiple locations. My thought was just to put the schema markup on the homepage (JSON-ld)...
2
votes
1answer
3k views

Can I have multiple JSON-LD scripts in the same page?

The below script appears if I check the “Display the site links search box” in All in One SEO General Settings: <script type="application/ld+json"> { "@context": "http://...
2
votes
1answer
2k views

Does Google parse SVG images as value of the Schema.org 'image' property in JSON-LD?

Structured data markup is a standard way to annotate your content so Google can understand it. However, I am not sure, if Google will accept and parse svg+xml images as a value for the Schema.org ...
2
votes
1answer
55 views

Should Website and Organization be linked?

I'm wondering what the effects/benefits/issues are with linking Website and Organization structured data (specifically in JSON-LD). On the homepage of my site I have something like this: <script ...
2
votes
2answers
572 views

Should JSON-LD contact markup be placed on a homepage or Contact Us page?

I am wondering if JSON-LD contact markup should be placed on a homepage or Contact Us information page, or if both is fine.
2
votes
2answers
1k views

How to write JSON-LD for list of people?

I have a page that contains a list of people with a link of each that will open the main page of that person. Each link should have its own structured data. I'm using JSON-LD, but the example given ...
2
votes
2answers
244 views

Schema.org in Microdata or in JSON-LD?

Should I use Microdata markup on my blog or should I put just an JSON-LD with all info, or is using both the best option? A bit of explanation. I am trying to mark up my blog and I manage to get to 1 ...
2
votes
2answers
174 views

How do I specify your social profiles to Google?

A while back I began noticing that big organisations (for example, Nike) have social icons in the search results (knowledge graph). After a little digging, I found a guide on how to specify your ...
2
votes
1answer
38 views

json-ld for testimonials

We currently have some pages on our website that lists local businesses and on those pages we have testimonials. I'm trying to make the json+ld for these pages and I read that for testimonials, you ...
2
votes
1answer
733 views

Schema.org for multiple areas served and local business

I have a client who operates locally but also sells his services (in the managed technology niche) across North America. I have created these two scripts for his website and was wondering if you guys ...