Looking for a sample JSON-LD schema markup code for your home page? Here's a quick snippet that you can use for any website.

Bare Minimum Example for WebSite Schema Markup

These are the most basic fields that you might want to add your website.

{
    "@context": "http://schema.org",
    "@type": "WebSite",
    "name": "My Website Name",
    "url": "https://example.com",
}

Search Option Website Schema

If your website has search page then consider using potentialAction and replace the search result path

Adding your social pages

We can leverage using sameAs field for social pages as official page states

URL of a reference Web page that unambiguously indicates the item's identity. E.g. the URL of the item's Wikipedia page, Wikidata entry, or official website.

For more options please check http://schema.org/WebSite