Formatowanie i Kodowanie
JSON do klasy obudowy Scala
Scala case classes for Circe / Play JSON.
Notka redakcyjna
Understanding · Case classes and typeclass derivation.
Ten szczegółowy rozdział jest obecnie dostępny tylko w języku angielskim. Narzędzie konwersji powyżej działa w Twoim języku; długi artykuł objaśniający nie został jeszcze przetłumaczony.
Często zadawane pytania
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.
Ludzie wyszukują również
Powiązane narzędzia
More in this room.
- JSON do interfejsu TypeScriptWywnioskuj typy z próbki JSON i wygeneruj interfejsy TS.
- JSON do klasy C#Generuj klasy POCO z próbki JSON.
- JSON do Java POJOWygeneruj Java POJO z próbki JSON.
- JSON do Python DataclassDataclasses z podpowiedziami typów (z opcjonalnym Pydantic) z JSON.
- JSON do Go StructIdiomatyczne Go struct z tagami `json:`.
- JSON do Kotlin Data ClassZwięzłe klasy danych dla dowolnej próbki JSON.