🔧
JSON을 Java 클래스로
JSON 및 데이터 형식 · 무료 온라인 도구
JSON을 타입 추론으로 Java 클래스로 변환.
CoderNewbie 팀
성공
155 문자
1165 문자
import java.util.List;
public class Root {
private String name;
private Long age;
private Boolean active;
private Double score;
private Address address;
private List<Object> skills;
public String getName() { return name; }
public void setName(String name) { this.name = name; }
public Long getAge() { return age; }
public void setAge(Long age) { this.age = age; }
public Boolean getActive() { return active; }
public void setActive(Boolean active) { this.active = active; }
public Double getScore() { return score; }
public void setScore(Double score) { this.score = score; }
public Address getAddress() { return address; }
public void setAddress(Address address) { this.address = address; }
public List<Object> getSkills() { return skills; }
public void setSkills(List<Object> skills) { this.skills = skills; }
}
public class Address {
private String city;
private String zip;
public String getCity() { return city; }
public void setCity(String city) { this.city = city; }
public String getZip() { return zip; }
public void setZip(String zip) { this.zip = zip; }
}래퍼 유형
Long, Double, Boolean, String — null 가능 박스형 유형.
중첩 클래스
객체는 재귀적으로 명명된 클래스가 됩니다.
게터 및 세터
모든 필드에 표준 JavaBean 접근자가 생성됩니다.
JSON을 Java 클래스로 사용 방법
- 1Paste your input data (JSON, CSV, XML, YAML, etc.) into the input field.
- 2The tool automatically processes and validates your data.
- 3Review the converted output in the result panel.
- 4Copy or download the converted result.
주요 기능
- ✓100% 무료 — 가입, 구독, 광고 없음
- ✓브라우저에서만 실행 — 데이터는 기기를 떠나지 않습니다
- ✓빠르고 가벼움 — 즉시 결과 확인
- ✓크로스 플랫폼 — 데스크톱, 태블릿, 모바일 지원
자주 묻는 질문
Can I convert large JSON files?
Yes, but performance depends on your browser. Files up to 10MB are generally handled well.
Do you validate the input?
Yes, most tools validate input and show error messages with line numbers for invalid data.
Can I download the converted result?
Yes, most conversion tools provide a download button for the output file.