JSON to Scala
Generate Scala case classes from JSON β nested objects become nested case classes.
Runs locally in your browser. Your input is not uploaded.
How to Use
- 1
Paste sample JSON
Use a complete, representative sample so field types are inferred correctly.
- 2
Review the case classes
Nested objects become separate case classes, listed dependencies-first.
- 3
Copy into your project
Paste into your Scala source and wire up your JSON library's derivation.
Frequently Asked Questions
- Scala case classes with field types inferred from your JSON β String, Int, Double, Boolean, List[T], and nested case classes for nested objects.
Related Tools
JSON FormatterFormat, validate, and minify JSON with syntax highlightingJSON DiffCompare two JSON objects side-by-side and highlight differencesJSON to CSVExport JSON arrays to CSV with nested object flatteningCSV to JSONParse CSV files into structured JSON arraysJSON to XMLConvert JSON objects to XML with pretty-print outputXML to JSONParse XML and convert to clean JSONJSON to YAMLConvert between JSON and YAML formats bidirectionallyQuery String to JSONParse URL query parameters into JSON with nested support