JSON-LD is a format for adding structured data to a web page as a script that describes entities and facts using vocabularies such as schema.org. Google recommends it. It sits apart from the visible HTML and is easy to maintain.
More about JSON-LD
JSON-LD must match the visible content of the page.