Get the latest tech news

YAML is not a superset of JSON


I keep forgetting, so here we go. Please let me know if you have any others! Treatment of e.g.

JSON treats the value 1e2 a number, of course, because it’s not in quote marks. YAML fails to parse it as a number so silently falls back to treating it as a string. YAML does not permit tabs to be used as indentation.

Get the Android app

Or read this on Hacker News

Read more on:

Photo of json

json

Photo of yaml

yaml

Photo of superset

superset

Related news:

News photo

Dasel: Select, put and delete data from JSON, TOML, YAML, XML and CSV

News photo

A brief interview with JSON creator Douglas Crockford

News photo

Show HN: Jb / json.bash – Command-line tool (and bash library) that creates JSON