Clemens Vasters

Introducing JSON Structure - A Better Schema

JSON Schema is a validation language, not a data definition language. This talk introduces a new specification designed to finally fix that.

Introducing JSON Structure - A Better Schema
#1about 5 minutes

Why JSON Schema fails as a data definition language

JSON Schema's complexity with validation constructs like `allOf` and `anyOf` makes it a poor choice for defining data types, leading to a stalled standard.

#2about 2 minutes

Introducing JSON Structure as a type definition language

JSON Structure refactors JSON Schema into a strict type definition language with required types, named objects, and new built-in primitive types for better code generation.

#3about 2 minutes

Using new compound types like map and tuple

JSON Structure introduces formal compound types like `map` for dictionaries and `tuple` for creating efficient, compact wire formats for time-series data.

#4about 4 minutes

Defining discriminated unions and organizing types

Use the `choices` keyword for formal discriminated unions and organize schemas with namespaces and a restricted `$ref` for cleaner mapping to programming languages.

#5about 3 minutes

Managing dependencies with imports and explicit inheritance

Separate file inclusion from type referencing with `$import` and use `abstract` and `extends` for clear, unambiguous type inheritance.

#6about 4 minutes

Extending schemas with companion specifications

Add functionality through optional companion specs for internationalization, scientific units, currencies, and even re-introducing validation rules from JSON Schema.

#7about 2 minutes

How to get involved with the JSON Structure standard

JSON Structure is a new IETF draft, and community participation through filing issues and providing feedback at jsonstructure.org is encouraged.

Related jobs
Jobs that call for the skills explored in this talk.

Software Engineer

tree-IT GmbH
Bad Neustadt an der Saale, Germany

Intermediate
Senior

Featured Partners

Related Articles

View all articles
CH
Chris Heilmann
Douglas Crockford - JSON and Beyond
Back at the WeAreDevelopers World Congress in July, Douglas Crockford took the stage to tell the JSON story and what's next. You can watch the video or read all about it here.IntroductionHello dear friends! Today, we delve into the world of data inte...
Douglas Crockford - JSON and Beyond
CH
Chris Heilmann
Dev Digest 136 - No JS(on) of mine
News and ArticlesDouglas Crockford is our featured video, so let's talk about evolving JavaScript and all things JSON. Judicious JSON explains all the weird things in it, you can learn why it can be incredibly slow, people wonder what even is a JSON ...
Dev Digest 136 - No JS(on) of mine
DC
Daniel Cranney
Tips and Tricks: Working with JSON
We recently released a JSON-focused edition of the Dev Digest, honouring its creator, Douglas Crockford, and what has become one of the most commonly used formats for storing and sharing data. It turns out, developers really like JSON, so we thought ...
Tips and Tricks: Working with JSON
DC
Daniel Cranney
Dev Digest 195: End of Likes, JavaScript’s a Zoo, and Messing with Bots!
Inside last week’s Dev Digest 195 . 👎 No more external likes 🤗 Needy programs 📉 The worst selling Microsoft product 🟨 JavaScript engines zoo 🍞 No more toasts! 🤖 Messing with bots 👔 Beware of fake job interviews 🗞️ Join over 150,000 developers alread...
Dev Digest 195: End of Likes, JavaScript’s a Zoo, and Messing with Bots!

From learning to earning

Jobs that call for the skills explored in this talk.

Data Engineer

Data Engineer

Babel
Municipality of Madrid, Spain

Remote
ETL
Teradata
Solutions Architect

Solutions Architect

Snowflake
Killin, United Kingdom

Remote
HBase
Hadoop
Tableau
Data analysis