JSON to Java
Java DTO와 validation 중심으로 JSON 응답 모델을 정리합니다.
JSON to Kotlin Data Class
nullable 규칙과 중첩 객체 구조를 Kotlin 관점에서 검토할 수 있도록 구성한 전용 페이지입니다.
Input
JSON을 Kotlin data class로 바로 변환하고 nullable, nested object 구조를 같은 화면에서 검토할 수 있습니다.
{
"orderId": "ORD-2026-001",
"status": "PAID",
"amount": 12900,
"customer": {
"name": "Lee",
"email": "lee@example.com"
}
}
Output
data class ProfilePayload(
val profileId: String,
val nickname: String,
val marketing: Boolean,
val tags: List<String>?,
val contact: Contact
)
Explanation
Kotlin은 nullability를 타입에 직접 드러내기 때문에 JSON 샘플을 모델링할 때 계약 판단이 더 명확해집니다.
Related Tools
언어별 변환기와 JSON 보조 도구를 연결해 내부 링크 구조를 강화했습니다.
Java DTO와 validation 중심으로 JSON 응답 모델을 정리합니다.
프런트엔드 API 계약을 interface 형태로 정리합니다.
샘플 JSON을 정리한 뒤 변환기에 다시 넣어 타입 추론을 안정화합니다.
클래스 초안과 함께 schema 문서 기준을 비교할 수 있습니다.