Skip to content

Integration

What Is JSON-LD, and Why Use It for DPP Data?

What JSON-LD is, how it differs from plain JSON and why it is recommended as the default exchange format for the Digital Product Passport.

By IDPP · · Updated: · 2 min read

The CIRPASS-2 reference architecture recommends JSON-LD as the default exchange format for the Digital Product Passport. Why not plain JSON? The answer is one word: meaning.

The problem with plain JSON

A field name carries no meaning on its own:

{ "material": "PET", "recycled": 30 }

Thirty per cent of what? By weight or by volume? Post-consumer? Two platforms can use the same field name for different things and nobody notices.

What JSON-LD adds

JSON-LD adds a context that binds each field to a URI with a defined meaning. "recycledContent" then points at a standard concept, and passports produced by two different systems can be mapped automatically.

Crucially, JSON-LD is still JSON. A client that ignores the context reads it as ordinary JSON; a client that uses it resolves the meaning — an ideal property during a transition.

See the EN 18223 core data model and the DPP data model guide.

Relationship to verifiable credentials

W3C Verifiable Credential packages are JSON-LD based, so holding passport data as JSON-LD makes producing signed, verifiable data sets the natural next step. See verifiable credentials.

Working with a resolver

A resolver returns HTML or application/ld+json depending on the request's Accept header, letting one identifier serve consumers and machines alike. See what a resolver service is.

Practical implementation notes

  1. Version the context and publish it at a permanent address.
  2. Map field names to sector models and document the mapping.
  3. Use language-independent codes; resolve language at the presentation layer. See multilingual passports.
  4. Add schema validation: JSON-LD gives meaning, JSON Schema gives validity.

Frequently asked questions

Is JSON-LD mandatory?

The standards do not mandate a serialisation, but the reference architecture recommends JSON-LD as the default and the ecosystem is moving that way.

If I use AAS, do I need JSON-LD?

AAS dominates in automotive and industrial settings. Bridging work between the two is ongoing; keeping one canonical model and generating both serialisations is the safest approach. See AAS and Catena-X.

Does it hurt performance?

No. Context resolution can be cached and passport documents are small.

Get your products passport-ready

IDPP lets you build, publish and register ESPR- and EN 1821x-aligned digital product passports with the EU DPP Registry.

Start for free What is IDPP?