JSON-LD Playground

Play around with JSON-LD markup by typing out some JSON below and seeing what gets generated from it at the bottom of the page. Pick any of the examples below to get started.

NOTES:
Gist
Key Autocomplete
all of the @ keywords
available keys in @context
{
  "@context": {
    "name": "http://example.com/vocab#name",
    "children": {
      "@reverse": "http://example.com/vocab#parent"
    },
    "pets": {
      "@reverse": "http://example.com/vocab#owner"
    }
  },
  "@id": "#homer",
  "name": "Homer",
  "children": [
    {
      "@id": "#bart",
      "name": "Bart"
    },
    {
      "@id": "#lisa",
      "name": "Lisa"
    }
  ],
  "pets": [
    {
      "@id": "#snowball-ii",
      "name": "Snowball II"
    },
    {
      "@id": "#santas-little-helper",
      "name": "Santa's Little Helper"
    }
  ]
}
 
[
  {
    "@id": "#homer",
    "@reverse": {
      "http://example.com/vocab#parent": [
        {
          "@id": "#bart",
          "http://example.com/vocab#name": [
            {
              "@value": "Bart"
            }
          ]
        },
        {
          "@id": "#lisa",
          "http://example.com/vocab#name": [
            {
              "@value": "Lisa"
            }
          ]
        }
      ],
      "http://example.com/vocab#owner": [
        {
          "@id": "#snowball-ii",
          "http://example.com/vocab#name": [
            {
              "@value": "Snowball II"
            }
          ]
        },
        {
          "@id": "#santas-little-helper",
          "http://example.com/vocab#name": [
            {
              "@value": "Santa's Little Helper"
            }
          ]
        }
      ]
    },
    "http://example.com/vocab#name": [
      {
        "@value": "Homer"
      }
    ]
  }
]
 
 
 
 
 
 
 
 
 
 
 
Subject Predicate Object Language Datatype Graph
NOTE: As of 2022-08-25, the demos of RSA and Bitcoin signatures are temporarily unavailable. For a demo involving JSON-LD signatures and other related technology, please see the Verifiable Credentials Playground.