Website | ECMA 404 Specification

Libraries for JSON processing are too numerous to count; it's almost a rite of passage for any new language to have one.


JSON Schema

JSON Schema is the vocabulary that enables JSON data consistency, validity, and interoperability at scale.

Website | Specification: JSON Schema Core defines the basic foundation of JSON Schema, JSON Schema Validation defines the validation keywords of JSON Schema


JSON-LinkedData (JSON-LD)

Linked Data empowers people that publish and use information on the Web. It is a way to create a network of standards-based, machine-readable data across Web sites. It allows an application to start at one piece of Linked Data, and follow embedded links to other pieces of Linked Data that are hosted on different sites across the Web.

JSON-LD is a lightweight Linked Data format. It is easy for humans to read and write. It is based on the already successful JSON format and provides a way to help JSON data interoperate at Web-scale. JSON-LD is an ideal data format for programming environments, REST Web services, and unstructured databases such as Apache CouchDB and MongoDB.

Website | GitHub Org | Specifications: JSON-LD 1.1, JSON-LD Processing Algorithms and API, JSON-LD 1.1 Framing

Example

A simple example of a JSON object with added semantics:

{
  "@context": "https://json-ld.org/contexts/person.jsonld",
  "@id": "http://dbpedia.org/resource/John_Lennon",
  "name": "John Lennon",
  "born": "1940-10-09",
  "spouse": "http://dbpedia.org/resource/Cynthia_Lennon"
}

The example above describes a person whose name is John Lennon. The difference between regular JSON and JSON-LD is that the JSON-LD object above uniquely identifies itself on the Web and can be used, without introducing ambiguity, across every Web site, Web services and databases in operation today.


Tags: format   specification   ecmascript   browser   nodejs   storage  

Last modified 07 October 2024