The Json Blog

Guides, tips, and tutorials for working with JSON.

📄
How to Convert JSON to C# Classes (System.Text.Json and Newtonsoft)
Deserializing JSON in .NET means writing classes and getting the attributes right. Here is how to generate C#…
Read more ➔
📄
How to Convert JSON to Java (Jackson POJOs, Done Right)
Binding JSON to Java means writing POJOs and getting the Jackson annotations right. Here is how to generate…
Read more ➔
📄
How to Convert JSON to Go Structs (Tags, Pointers, and omitempty)
Go needs a struct to unmarshal JSON into, and writing them by hand is slow. Here is how…
Read more ➔
📄
Generate TypeScript Interfaces from JSON (The Complete Guide)
Hand-writing interfaces for an API response is slow and error-prone. Here is how to generate TypeScript interfaces from…
Read more ➔
📄
How to Convert CSV to JSON (Online, Python, and JavaScript)
Converting CSV to JSON is easy until quoted fields and types get involved. Here is how the mapping…
Read more ➔
📄
Unexpected end of JSON input: Causes and Fixes
The Unexpected end of JSON input error means the parser ran out of text before the JSON was…
Read more ➔
📄
JSON vs XML vs YAML: When to Use Each
JSON, XML, and YAML all store structured data, but they fit different jobs. Here is how they compare…
Read more ➔
📄
Trailing Commas in JSON: Why They Break Parsing
A trailing comma is valid in JavaScript but illegal in JSON, and it is one of the top…
Read more ➔
📄
How to Parse JSON in JavaScript (JSON.parse + try/catch)
Parsing JSON in JavaScript is one function call, but doing it safely means try/catch and a few gotchas.…
Read more ➔
📄
How to Parse JSON in Python (json.loads vs json.load)
Parsing JSON in Python comes down to two functions and a handful of gotchas. Here is json.loads vs…
Read more ➔