PDF 합치기
QR 코드 생성기
비밀번호 생성기
JSON 포매터
모든 도구
홈으로 돌아가기
JSON에서 TypeScript 인터페이스 생성
루트 이름
JSON
{ "id": 1, "name": "Ana", "active": true, "address": { "city": "São Paulo", "zip": "01000-000" }, "tags": ["a", "b"] }
TypeScript 인터페이스
복사
interface Root { id: number; name: string; active: boolean; address: Address; tags: string[]; } interface Address { city: string; zip: string; }
JSON 객체를 붙여넣으면 중첩 객체와 배열을 포함한 TypeScript 인터페이스가 생성되어 코드에 바로 사용할 수 있습니다.