JSON in Every Language
Code examples and quick-reference guides for parsing, generating, and working with JSON in every major programming language.
JSON in Python
Complete guide to working with JSON in Python. Learn how to parse JSON strings, read JSON files, serialize Python objects, and handle errors using the built-in json module.
JSON in JavaScript
Complete guide to working with JSON in JavaScript. Learn JSON.parse(), JSON.stringify(), fetching JSON from APIs, and common pitfalls.
JSON in TypeScript
Guide to working with JSON in TypeScript. Covers JSON.parse() with type assertions, typed fetch, Zod schema validation, and generating TypeScript interfaces from JSON.
JSON in Go
Complete guide to working with JSON in Go. Learn how to marshal and unmarshal JSON, use struct tags, handle dynamic JSON with map[string]interface{}, and stream large JSON files.
JSON in Java
Guide to parsing and generating JSON in Java. Covers Jackson (ObjectMapper), Gson, and org.json — the three most popular JSON libraries.
JSON in PHP
Complete guide to working with JSON in PHP. Learn json_decode(), json_encode(), handling errors, and working with associative arrays vs objects.
JSON in Ruby
Guide to working with JSON in Ruby. Covers parsing JSON strings, reading JSON files, generating JSON, and using symbols vs strings as hash keys.
JSON in C#
Guide to working with JSON in C#. Covers System.Text.Json (built-in, .NET 5+), Newtonsoft.Json (Json.NET), deserialization to strongly-typed classes, and source generation.
JSON in Rust
Guide to working with JSON in Rust using serde_json. Covers serialization, deserialization, typed structs with Serde derive macros, and dynamic JSON with Value.
JSON in Kotlin
Guide to parsing and generating JSON in Kotlin. Covers kotlinx.serialization (official Kotlin library), Gson, and Moshi.
Format your JSON online
Free JSON formatter, validator, and AI-powered conversion tools.
Open JSON Formatter →