jsondecode.com logo

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.

JSON in Swift

Complete guide to working with JSON in Swift. Learn how to use the Codable protocol, JSONDecoder, JSONEncoder, CodingKeys, optional fields, and custom date decoding strategies.

JSON in Dart

Guide to working with JSON in Dart and Flutter. Covers jsonDecode/jsonEncode from dart:convert, fromJson/toJson factory methods, null-safety patterns, and generating model classes.

JSON in Scala

Guide to working with JSON in Scala. Covers play-json (Reads/Writes/Format), circe with automatic derivation, and spray-json — the three most popular Scala JSON libraries.

JSON in Next.js

Guide to fetching and handling JSON in Next.js App Router. Covers Server Components, Client Components with SWR, Zod validation, API route responses, and fetch caching.

JSON in Express

Complete guide to handling JSON in Express.js APIs. Covers express.json() middleware, res.json(), accessing req.body, Zod validation, and JSON error handling.

JSON in FastAPI

Guide to JSON handling in FastAPI. Covers Pydantic models for request bodies, automatic JSON serialization, nested models, custom encoders, and datetime/UUID fields.

JSON in Django

Complete guide to JSON in Django. Covers JsonResponse, parsing request bodies, Django REST Framework serializers and APIView, JSONField in models, and custom JSON encoders.

JSON in Terraform

Complete guide to working with JSON in Terraform. Covers jsondecode(), jsonencode(), reading JSON files with file(), and mapping JSON types to Terraform types.

Format your JSON online

Free JSON formatter, validator, and AI-powered conversion tools.

Open JSON Formatter →

If jsondecode.com saved you time, share it with your team

Free forever. No ads. No sign-up. Help other developers find it.