도구 찾기

↑↓ 이동 Enter 열기

이름을 모르면 작업 내용으로 검색하세요.

JSON Formatter & Validator

로컬 처리

JSON Formatter & Validator은(는) 브라우저에서 데이터 형식 지정 및 검증을(를) 수행하며 결과와 제한을 명확히 설명합니다. 이 페이지에는 실제 입출력 예시, 구현 제한, 1차 참고 자료가 포함됩니다.

검토 완료 · 업데이트 · 무료 · 계정 불필요

JSON Workspace
Input0 chars
Plain text · UTF-8⌘ + Enter format
Output
Formatted JSON will appear here.
Waiting for input0 lines · 0 B
Your JSON stays in this browser tab. It is saved locally only when Remember draft is enabled.

JSON Formatter & Validator은(는) 무엇을 하나요?

JSON Formatter & Validator은(는) 브라우저에서 데이터 형식 지정 및 검증을(를) 수행하며 결과와 제한을 명확히 설명합니다. 검증된 기능: Strict RFC 8259 parsing, 2-space, 3-space, 4-space, or tab indentation, JSON5 repair, Lossless large-number mode, Searchable tree view, Local file input and optional draft restore.

Choose strict, repair, or lossless behavior deliberately

Use strict formatting for API payloads, Repair JSON5 only for known relaxed input, Tree view for inspection, and Lossless numbers when every numeric digit must survive.

사용 방법

  1. Paste, type, or open one JSON document.
  2. Choose indentation, key sorting, minification, lossless numbers, or Tree view.
  3. Correct any reported syntax location, optionally repair JSON5 syntax, then copy or download formatted.json.

실제 입출력 예시

Format one compact object

입력

{"project":"KitLumi","local":true}

출력

{
  "project": "KitLumi",
  "local": true
}

The parser validates the document first and then prints the same parsed values with two-space indentation.

일반적인 오류와 해결 방법

현상가능한 원인해결 방법
Parsing stops near a property name.The key uses single quotes or no quotes.Wrap every property name and string in double quotes.
A large integer changes after formatting.Standard mode uses JavaScript Number and the value exceeds safe-integer precision.Enable Lossless numbers or represent identifiers as JSON strings.

Strict JSON, explicit repair, and numeric precision

이 도구의 구체적인 제한: Strict mode rejects comments, trailing commas, single quotes, NaN, Infinity, and undefined. Repair JSON5 converts supported extensions; Lossless numbers keeps exact numeric text.

표준 및 구현 참고 자료

JSON Formatter — FAQ

Does the JSON Formatter upload data?

No. Parsing, formatting, key sorting, and minification run in the current browser tab.

Does it accept JSON5 or comments?

Strict formatting rejects JSON5 extensions, but Repair JSON5 can deliberately convert comments, trailing commas, single quotes, and unquoted keys to strict JSON.

Can it preserve very large numbers?

Yes. Enable Lossless numbers to keep the original JSON number text instead of rounding through JavaScript Number.

변경 사항

실질적인 업데이트: JSON Formatter: Added file input, three-space indentation, JSON5 repair, lossless-number mode, searchable tree view, undo and redo, auto-format control, opt-in draft restore, fullscreen, and printing.

이 도구의 관리자

KL
KitLumi EngineeringKitLumi Engineering이 동작, 테스트, 예제 및 개인정보 설명을 관리합니다.