Pretty print JSON-LD to HTML, adding hyperlinks to the keys (from the JSON-LD context)
JavaScript HTML CSS
Switch branches/tags
Nothing to show
Permalink
Failed to load latest commit information.
.gitignore
LICENSE
README.md
index.html
index.js
jsonld-markup.css
package.json small fix for null values Jul 12, 2016

README.md

jsonld-markup

Pretty print JSON-LD to HTML, adding hyperlinks to the keys (from the JSON-LD context).

jsonld-markup is adapted from json-markup.

var code = document.querySelector('code');
var data = JSON.parse(code.textContent.trim());
code.innerHTML = jsonldMarkup(data, {'@vocab': "http://schema.org/"})

Note: a context must be specified (this module won't fetch an existing context).

License

Apache 2.0