Convert Kotlin classes to JSON!

Paste Kotlin data class code and get an example JSON!
input
result
 

Convert Kotlin classes to JSON!

Paste Kotlin data class code and get an example JSON!

Use Cases

- API docs and test payloads - Paste a DTO or model class to get an example JSON with the right shape for API docs, Postman tests or frontend mock responses. - Serialization rules applied - Reads @SerialName, @JsonProperty, String?, = default, enum class, List·Map to produce the JSON keys and value shapes that are actually sent.