Skip to content

フォーマッター&コード

JSONからScalaケースクラスへ

Scala case classes for Circe / Play JSON.

Runs in your browser

編集者注

Understanding · Case classes and typeclass derivation.

この詳細な解説章は現在、英語版のみで提供されています。上の変換ツールはあなたの言語で動作しますが、長文の解説記事はまだ翻訳されていません。

よくある質問

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.

他の人はこちらも検索しています

関連ツール

More in this room.

すべて表示 フォーマッター&コード