RevealTheme logo

XML to JSON 변환기

XML 문서를 JSON으로 변환합니다. 속성은 @ 접두사가 붙은 키로 변환되고, 반복되는 태그는 배열로 변환됩니다.

이 도구 사용 방법

  1. 1

    Paste or type your XML into the input box.

  2. 2

    Read the converted JSON in the output panel below, which updates as you type.

  3. 3

    If the XML is malformed, fix the error shown in red and the output will reappear.

  4. 4

    Select the JSON from the output panel to copy it into your project.

XML to JSON 변환기란 무엇인가요?

XML에서 JSON으로 변환하는 과정에서는 일부 정보가 손실됩니다. XML은 JSON에 직접적인 대응 요소가 없는 네임스페이스, 처리 명령어, CDATA 섹션을 지원하기 때문입니다. 이 변환기는 중첩 요소, 속성(@ 접두사 사용), 텍스트 콘텐츠(#text) 등 90%의 경우를 처리합니다. 복잡한 XML의 경우에는 전용 라이브러리가 필요할 수 있습니다.

일반적인 사용 사례

  • Inspect a SOAP or legacy XML API response as JSON before wiring it into a JavaScript front end.

  • Convert an RSS or Atom feed snippet into JSON to prototype a parser quickly.

  • Turn a config file or build manifest written in XML into JSON to eyeball its structure.

  • Pull values out of an XML sitemap or data export when a JSON shape is easier to traverse.

  • Teach or learn how attributes, repeated tags, and text nodes map between the two formats.

  • Sanity-check that a small XML payload is well-formed, since malformed input shows a parser error.

자주 묻는 질문

@ 접두사는 무엇인가요?
속성은 같은 이름의 자식 요소와 구분하기 위해 @속성이름 형태로 저장됩니다.

관련 도구