JSON-LD Stay organized with collections Save and categorize content based on your preferences.
JSON-LD is an easy-to-use JSON-based linked data format that defines the concept ofcontext
to specify the vocabulary for types and properties. Gmail supportsJSON-LD data embedded in HTML documents with the@context
ofschema.org
, as in the following example:
<scripttype="application/ld+json">{"@context":"http://schema.org","@type":"Person","name":"John Doe","jobTitle":"Graduate research assistant","affiliation":"University of Dreams","additionalName":"Johnny","url":"http://www.example.com","address":{"@type":"PostalAddress","streetAddress":"1234 Peach Drive","addressLocality":"Wonderland","addressRegion":"Georgia"}}</script>
@type
key is a reserved key name and should contain either a full type URI or a URI fragment (in which case ahttp://schema.org/
prefix, derived from the supplied data-context attribute, is assumed).The full specifications and requirements for the JSON-LD syntax are available onjson-ld.org, and you can also use ourSchema Validator tool to try out JSON-LD and debug your markup.
Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-06-04 UTC.