Tuesday, March 12, 2019

Which Structured Data does it prefer: JSON-LD or Microdata?

Which Structured Data does it prefer and recommended by Google for SEO: JSON-LD or Microdata?

    Which Structured Data does it prefer: JSON-LD or Microdata?

    Structured data is a method of pairing a name-value to help search engines categorize and better understand your content and index it.

    There are several types of data structure formations on a web page, including using Microdata and JSON-LD. Although both have the same purpose, in writing it is certainly quite different. 

    Microdata vs JSON-LD

    Microdata: Microdata is a HTML specification used for semantic mark-up and uses schema.org vocabulary to encode data. Search engines love this method of communicating metadata and use this to get additional information from web pages. 

    The specification creates a “richer” experience for web users via rich snippets. Microdata often uses visual markup to style actual elements on the page it is time-consuming.

    JSON-LD: JSON deployment continues to grow at a faster pace. JSON-LD schema is being widely accepted because of ease of implementation. JSON-LD helps markup data context through the use of types and properties

    Source: https://www.envigo.co.uk/blog/search-engine-optimisation/schema-markup-best-practices-json-ld-vs-microdata

    In writing, microdata and JSON-LD use a writing format that is quite different.



    <div itemscope itemtype="http://schema.org/Article">
        <h2 itemprop="headline">Hello World</h2>
        <div itemprop="image" itemscope itemtype="https://schema.org/ImageObject">
            <img itemprop="url" src="https://4.bp.blogspot.com/-achor1vCzsc/W-ddWSmwckI/AAAAAAAAFxw/RLnfFvZ-rdMtHy2_evAKl_Ajxo4cQs8gwCLcBGAs/s1600/Travelord%2BAMP%2BBlogger%2BTemplate.jpg" />
            <meta itemprop="width" content="1280" />
            <meta itemprop="height" content="720" />


    <script type="application/ld+json"> {
        "@context": "http://schema.org",
        "@type": "Article",
        "headline": "Hello World",
        "image": {
            "@type": "ImageObject", "url": "https://4.bp.blogspot.com/-achor1vCzsc/W-ddWSmwckI/AAAAAAAAFxw/RLnfFvZ-rdMtHy2_evAKl_Ajxo4cQs8gwCLcBGAs/s1600/Travelord%2BAMP%2BBlogger%2BTemplate.jpg", "width": 1280, "height": 720
    } </script>

    Prefer Structured Data for SEO Google 

    John Mueller, Senior Webmaster Trend at Google, recently held a Hangout Webmaster. In the video, Jhon Mu explains the structured data that is more acceptable to Google.

    John Mu explained, Google Algorithm would be more accepting of JSON-LD in advance compared to Microdata. He said that JSON-LD is easier to implement on web pages.

    How to Implement JSON in Blogger

    Add JSON-LD markup before </body>

        <script type='application/ld+json'> {
        "@context": "http://schema.org",
        "@type": "BlogPosting",
        "mainEntityOfPage": {
            "@type": "WebPage", "@id": "<data:blog.url.canonical/>"
        "headline": "<data:view.title.escaped/>",
            "@type": "ImageObject", <b:if cond='data:view.featuredImage'>"url": "<b:eval expr='resizeImage(data:view.featuredImage, 1200, "1200: 630")'/>", <b:else if cond='data:blog.postImageUrl'/>"url": "<b:eval expr='resizeImage(data:blog.postImageUrl, 1200, "1200: 630")'/>", <b:else/>"url": "https://cdn.blakbin.com/online-bloggerbook.png", </b:if>"height": 1200, "width": 630

    Google’s stated preference is for JSON-LD. It may be in your best interest to consider switching over to JSON-LD structured data if you currently use microdata. But at this time it’s not actually necessary because Google can still read it and interpret it. But sometimes, it’s best to future proof content. It’s up to you at this time because Google isn’t actually requiring one format over another.

    Source: https://www.searchenginejournal.com/google-structured-data-preference/ 
    Thanks, may useful.