What is JSON-LD

What is JSON-LD

JavaScript Objective Notation for Linked Data (popularly known as JSON-LD) is a structured data format that is supported by Google and other big search engines to markup your website.

While it is one of the formats for structured data (Microdata and RDFa being the other ones), it has many advantages over either of the other formats
  1. It is placed in a script tag rather than the body of the web page.
  2. Since JSON-LD code is not required to be placed inline, therefore, there is no need to change HTML elements.
  3. JSON-LD method does not affect the rendering of the webpage as the information inside the script is hidden from the visitor.
  4. This information can only be used by search engines.
  5. Above all, this method is easier to implement and also recommended by Google.

Hence, JSON-LD is the preferred method of implementing structured data markup. 

The example of JSON-LD code generated by the schema builder plugin is as follows:

 


  1. <script type="application/ld+json">
  2. {
  3.   "@context": "https://schema.org/",
  4.   "@type": "Product",
  5.   "name": "Apple Watch Series  (GPS, mm) - Space Gray Aluminum Case with Black Sport Band",
  6.   "image": "",
  7.   "offers": {
  8.     "@type": "Offer",
  9.     "priceCurrency": "",
  10.     "price": "",
  11.     "availability": "",
  12.     "url": "",
  13.     "priceValidUntil": ""
  14.   },
  15.   "aggregateRating": {
  16.     "@type": "AggregateRating",
  17.     "ratingValue": "",
  18.     "ratingCount": "",
  19.     "reviewCount": "",
  20.     "bestRating": "",
  21.     "worstRating": ""
  22.   },
  23.   "review": "",
  24.   "description": "",
  25.   "brand": "Apple",
  26.   "sku": "",
  27.   "mpn": "",
  28.   "gtin8": "",
  29.   "gtin13": "",
  30.   "gtin14": "",
  31.   "gtin": "",
  32.   "gtin12": "",
  33.   "nsn": "",
  34.   "award": "",
  35.   "category": "",
  36.   "material": "",
  37.   "awards": "",
  38.   "color": "",
  39.   "productID": "",
  40.   "slogan": "",
  41.   "model": ""
  42. }



    • Related Articles

    • Adding Schema Markup to your pages

      The JSON-LD Format The Schema Markup Builder provides you with the structured data in JSON-LD format, Google's preferred format for adding structured data to your pages. JSON-LD is an incredibly easy format to implement. This is because it can be ...
    • Introduction to Schema Builder

      What is Schema Builder? Schema Builder is a Chrome extension that allows you to add structured data to any webpage quickly, easily, and correctly without any schema knowledge. There are many schema.org defined types of structured data. Each schema ...