RevealTheme logo

YAML to JSON 변환기

브라우저에서 YAML을 JSON으로 변환합니다. 중첩 맵, 리스트, 문자열, 숫자, 불리언을 지원합니다.

이 도구 사용 방법

  1. 1

    Paste or type your YAML into the input box, using spaces (not tabs) for indentation.

  2. 2

    Read the pretty-printed JSON that appears below the box as you type.

  3. 3

    If a red error message shows instead, check your indentation and remove unsupported syntax.

  4. 4

    Select and copy the JSON output to paste into your config, code, or API client.

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

YAML과 JSON은 동일한 구조를 표현할 수 있는 데이터 교환 형식입니다. YAML은 사람이 읽기에 더 편하지만(중괄호나 따옴표가 없음), JSON은 보다 보편적으로 파싱할 수 있습니다. 둘 사이의 변환은 구성 파일(GitHub Actions, Docker Compose)에서 JSON만 허용하는 도구에 데이터를 공급해야 할 때 흔히 필요합니다.

일반적인 사용 사례

  • Quickly turning a small docker-compose.yml or GitHub Actions snippet into JSON to inspect its structure.

  • Converting a hand-written config block into JSON to paste into a tool or API that only accepts JSON.

  • Checking how YAML scalars like true, 123, or ~ get typed once they become JSON values.

  • Sanity-checking indentation in a YAML fragment by seeing whether the nesting comes out as you expect.

  • Generating seed JSON fixtures for tests from a more readable YAML draft.

  • Teaching or learning the mapping between YAML structures and their JSON equivalents.

자주 묻는 질문

YAML의 고급 기능도 지원되나요?
앵커, 별칭, 여러 줄 문자열, 태그는 지원되지 않습니다. 이러한 경우에는 js-yaml 같은 완전한 YAML 파서를 사용하세요.

관련 도구