JSON Converters — CSV, YAML, XML, TypeScript & Code
Convert JSON to and from CSV, YAML, XML, SQL, and typed code in many languages.
JSON to GraphQL Schema: Writing SDL Types from a JSON Sample
Convert a JSON response into GraphQL SDL — scalar mapping, the nullability model (why ! matters), lists, nested types, and input types. Plus what JSON can't express about a graph.
JSON to Prisma Schema: Model Your Database from a JSON Sample
Turn a JSON object into a Prisma model — scalar type mapping, optional fields, arrays, the Json type, relations, and the @id/@default attributes that a raw JSON sample can't express.
JSON to Pydantic Models: Typed, Validated Python from JSON
Turn a JSON sample into a Pydantic BaseModel: type inference, Optional fields, nested models, aliases for non-Python keys, and why Pydantic became the backbone of Python AI apps.
JSON to PHP: Generating Typed Classes with Constructor Promotion
Turning JSON API responses into typed PHP 8 classes instead of raw associative arrays — constructor property promotion, a fromArray() hydrator, and where PHPStan/Psalm catch what json_decode can't.
Generating a Protobuf or Avro Schema from a Real JSON Sample
Once you've decided to move a payload to Protobuf or Avro, the fastest starting point isn't a blank .proto file — it's inferring one from a real JSON example.
JSON to Excel — Converting API Responses to Spreadsheets (and Back)
Turning a JSON array of objects into a real .xlsx file for stakeholders who live in spreadsheets, and reading Excel/CSV files back into JSON for the reverse direction.
CSV to JSON: How to Convert Spreadsheet Data to JSON Arrays
Learn how to convert CSV files to JSON arrays online. Covers headers, type detection, delimiter options, and best practices for data migration and API payloads.
YAML to JSON: Complete Conversion Guide with Examples
Learn how to convert YAML to JSON and back. Covers YAML syntax, type mapping, comments, anchors, and common use cases in Kubernetes, CI/CD and OpenAPI.
XML to JSON Conversion: Patterns, Pitfalls and Best Practices
Learn how to convert XML to JSON correctly. Covers element-to-key mapping, repeated elements as arrays, attribute handling, and common patterns for SOAP, RSS and enterprise APIs.
JSON to Go Struct: Generate Go Types from API Responses
Learn how to generate Go structs from JSON. Covers json tags, type mapping, nested structs, arrays, null handling, and working with encoding/json.
JSON to Zod Schema: Runtime Validation for TypeScript APIs
Learn how to generate Zod validation schemas from JSON. Covers z.object, z.array, type inference, optional fields, and integrating Zod with React, Next.js and tRPC.
JSON to SQL: Convert JSON Arrays to SQL Tables
Learn how to generate SQL CREATE TABLE and INSERT statements from JSON. Covers type inference, dialect differences (PostgreSQL, MySQL, SQLite), and data import best practices.
JSON in TypeScript: Type Safety, Generics, and Runtime Validation
How to work with JSON in TypeScript safely — type assertions, generics, unknown type, Zod and JSON Schema validation, and generating types from JSON.
JSON Parsing in Swift and Dart (Flutter): Codable Structs and fromJson Classes
Learn how to parse JSON API responses in Swift (Codable) and Dart/Flutter (fromJson/toJson). With CodingKeys, snake_case mapping, and optional field handling.
JSON to Java and Kotlin: Generate POJOs and Data Classes from API Responses
Learn how to convert JSON to Java POJOs (Jackson, Lombok) and Kotlin data classes for Android and Spring Boot. With type mapping, annotations, and deserialization examples.
JSON to Python — dataclass, TypedDict, and Pydantic v2
Learn how to generate Python classes from JSON. Compare @dataclass, TypedDict, and Pydantic v2 BaseModel — with code examples for parsing, validation, and serialization.
JSON to TypeScript: Auto-generate Interfaces
Learn how to generate TypeScript interfaces from JSON automatically. Save time on API integration, reduce type errors and keep your types in sync with real data.
JSON to XML Converter — How It Works and When to Use It
Learn how to convert JSON to XML online, understand how keys become tags, and when XML is the right choice over JSON.
JSON to YAML — Complete Conversion Guide with Examples
Learn how to convert JSON to YAML and YAML back to JSON. Understand the differences, syntax rules, and when to use each format.
JSON to CSV — How to Convert JSON Arrays to Spreadsheets
Learn how to convert JSON to CSV online, handle nested objects, choose delimiters, and open the result in Excel or Google Sheets.