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
16
votes
2answers
18k 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"> { "@...
15
votes
2answers
8k 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 ...
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
6k 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
3answers
6k 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 ...
6
votes
1answer
682 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
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 ...
5
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"...
5
votes
1answer
273 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
357 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 ...
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
63 views

How to specify “closed” for a day in OpeningHoursSpecification?

{ "@type": "OpeningHoursSpecification", "dayOfWeek": [ "Sunday" ], "Hours": "Closed" } I get the following error: Closed (The property Hours is not recognized by Google ...
4
votes
1answer
848 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
59 views

Are html tags allowed in structured data product description?

I'm providing structured data on product pages of an ecommerce site using json-ld. For description, I've been including html markup exactly as it is on the page. For example: { "@context": "https:...
4
votes
1answer
178 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
700 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
680 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
150 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
561 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
2answers
144 views

Can Google crawl dynamic structured data added in a window.onload() event?

I inject some JSON-LD into a page dynamically via Javascript, when I test the page using Google's Structured Data Testing Tool, the expected output appears and I can see the Product Element is ...
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
3answers
4k 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
43 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
1answer
617 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
314 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
43 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
532 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
607 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
59 views

Shall I localise and translate Schema.org structured data into each available language?

Let's say we have a website that is offered in English and German. Assume the Services offered - { "@context": "http://schema.org/", "@type": "Service", "serviceType": "#{t('TRANSLATION.MARKETING')}...
3
votes
1answer
85 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
362 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
611 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
48 views

How to prove third party review and ratings to be correct and real?

We are developing an App which of course has a website. I added some of our ratings and reviews from the users given in Google Play and Apple Store and corresponding JSON-LD's. I could not find the ...
3
votes
0answers
184 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
5k 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
2answers
750 views

Using both JSON+LD and Microdata to markup the exact same information on a page

This Quora Answer: https://www.quora.com/Can-I-mix-microdata-and-JSON-LD/answer/Aaron-Bradley The above answer from 2015 mentions there being a potential problem when marking up the same entity with ...
2
votes
1answer
88 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
117 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
672 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
2answers
77 views

Using the Schema.org types 'Organization', 'LocalBusiness' and 'LegalService' simultaneously for a law firm

I created a JSON-LD schema for a law firm website. I've checked this code in Google Structured Data Testing Tool and there is no errors. But no syntax errors does not mean that the schema is good. ...