Formatadores e Código
JSON para Scala Case Class
Scala case classes for Circe / Play JSON.
Nota do editor
Understanding · Case classes and typeclass derivation.
Este capítulo aprofundado está disponível apenas em inglês no momento. A ferramenta de conversão acima funciona no seu idioma; o artigo explicativo longo ainda não foi traduzido.
Perguntas frequentes
Quick answers.
›Which Scala versions are supported?
The output follows standard Scala 2.13 and Scala 3 syntax for case classes. It uses standard collection types like `List` or `Seq` and optional fields where appropriate.
›Does it support Circe or Play JSON?
Yes. It generates the base case class structure which can then be used with `deriveDecoder` in Circe or `Json.format` in Play JSON. Key names are preserved to match the source JSON.
›How does it handle nested objects?
The converter recursively identifies nested structures and generates separate, linked case classes for every object found within the payload.
›Is my data sent to any external API?
No. The parsing and code generation logic runs entirely within your browser environment. Your JSON structure never leaves your device.
As pessoas também pesquisam por
Ferramentas relacionadas
More in this room.
- JSON para Interface TypeScriptInferir tipos de uma amostra JSON e emitir interfaces TS.
- JSON para Classe C#Gerar classes POCO de uma amostra JSON.
- JSON para Java POJOEmitir um Java POJO de uma amostra JSON.
- JSON para Python DataclassDataclasses tipadas (com Pydantic opcional) de JSON.
- JSON para Go StructStructs Go idiomáticas com tags `json:`.
- JSON para Kotlin Data ClassClasses de dados concisas para qualquer amostra JSON.