Which JSON Ld format suits this website more

Hello, I have 2 schema.org format and I want to use one of them at my website pages but I can’t decide which one suite my website more can you please help me decide will be more than grateful these are the 2 coeds

<script type="application/ld+json">
{	
"@context": "http://schema.org",
        "@type": "BreadcrumbList",
        "itemListElement": [
            {
                "@type": "ListItem",
                "position": 1,
                "item": {
                    "@type": "WebSite",
                    "@id": "http://localhost:8000",
                    "name": "Home Page"
                }
            },
            {
                "@type": "ListItem",
                "position": 2,
                    "item": {
                    "@type": "WebPage",
                    "@id": "http://localhost:8000/browser-games",
                    "name": "Free Browser Games"
                }
            },    
            {
                "@type": "ListItem",
                "position": 3,
                    "item": {
                    "@type": "WebPage",
                    "@id": "http://localhost:8000/browser-games/2d",
                    "name": "2D"
                }
            }
        ]
    }
</script>

and the second

<script type="application/ld+json">{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"http://localhost:8000#organization","url":"http://localhost:8000","name":"OvOnGames","sameAs":[]},{"@type":"WebSite","@id":"http://localhost:8000#website","url":"http://localhost:8000","name":"OvOnGames","publisher":{"@id":"http://localhost:8000#organization"}},{"@type":"WebPage","@id":"@id": "http://localhost:8000/browser-games/2d#webpage","url":"@id": "http://localhost:8000/browser-games/2d","inLanguage":"en-US","name":"Free 2d Browser Games","isPartOf":{"@id":"@id": "http://localhost:8000#website"}}]}</script>

and thanks again for the help. :grinning:

Hello. It doesn’t matter for browser/server which schema you’re using. As long as JSON syntax is correct they’ll parse it accordingly.

During development you may want to use the first schema to help you debug errors easily. During production you may adopt the second schema to save bandwidth.

1 Like