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.

모두 보기 포매터 및 코드