</>CodexBash
All articles
Python and JavaScript

JSON explained

Everything a developer needs to know about JSON: the syntax and its six types, common mistakes, parsing and generating JSON in JavaScript, Python and Java, dates, big numbers and other pitfalls, JSON Schema for validation, JSON Lines, querying with jq, and JSON compared with XML and YAML.

CodexBash, , 5 min read

JSON, JavaScript Object Notation, is the most common format for exchanging data between programs. REST APIs speak it, configuration files use it, databases such as PostgreSQL and MongoDB store it, and log platforms ingest it. It is simple enough to learn in minutes, yet a handful of details, about numbers, dates, escaping and validation, cause real bugs. This article covers the syntax, how to work with JSON in popular languages, and the pitfalls worth knowing.

Sign in to read the rest

The whole 5 minute article is free with an account, along with every problem, lesson and tutorial. No card.