JSON Repair Tool and Invalid JSON Recovery Assistant

깨진 JSON 입력

1

복구된 JSON 출력

설정

JSON 복구 작동 방식

유효하지 않은 JSON을 입력하면 시스템이 다음 방법을 순서대로 시도합니다:

1
JSONRepair 라이브러리
대부분의 일반적인 문제를 빠르고 정확하게 복구
2
기본 패턴 매칭
간단한 문법 오류 처리
3
AI 제공자
복잡한 경우를 위한 AI 등

JSON 복구 시작하기

깨진 JSON을 입력하거나 Import를 클릭해 파일에서 불러오세요.

단계별 가이드: 깨진 JSON 복구 방법

11단계 – 깨진 JSON 붙여넣기22단계 – 자동 복구 프로세스33단계 – 복구된 JSON 확인44단계 – 깨끗한 JSON 사용

Repair JSON works best between validation and formatting. Start with the raw broken payload, let the tool try deterministic local repair first, use AI-assisted repair only if needed, then move the recovered JSON into validation, formatting, or export.

Recover broken text into usable JSON

Repair JSON is most valuable when the payload is too broken to use anywhere else

A lot of broken JSON is not just ugly - it is completely unusable. The repair step matters because it gets that payload back into a valid JSON shape so validation, formatting, comparison, and export are possible again.

Broken input
1
{
2
name: "Project X",
3
'id': 1024,
4
items: [
5
"A",
6
"B",
7
]
8
}
Repaired output
1
{
2
"name": "Project X",
3
"id": 1024,
4
"items": [
5
"A",
6
"B"
7
]
8
}

If the JSON is too broken to parse at all, starting with Repair JSON is often faster than starting with manual validation.

3 repair examples that reflect real workflows

Repair JSON is usually used for messy real-world payloads, not classroom examples. These examples match common issues in legacy systems, config cleanup, and corrupted logs.

Legacy API

Fix missing quotes and mixed quoting styles quickly

Useful for old systems, script-generated payloads, or manually assembled responses that almost look like JSON but are not actually valid.

깨진 JSON
1
{
2
orderId: 'SO-1024',
3
customer: {
4
name: 'Maeve'
5
}
6
}
복구된 JSON
1
{
2
"orderId": "SO-1024",
3
"customer": {
4
"name": "Maeve"
5
}
6
}

This category is usually fixed by local repair alone, without needing AI.

Config Cleanup

Strip comments and trailing commas so config parses again

Teams often write JavaScript object style config and only realize later that strict JSON does not allow comments or trailing commas.

깨진 JSON
1
{
2
"env": "prod",
3
"retry": 3, // retry count
4
"features": {
5
"betaCheckout": false,
6
}
7
}
복구된 JSON
1
{
2
"env": "prod",
3
"retry": 3,
4
"features": {
5
"betaCheckout": false
6
}
7
}

Repair JSON is ideal for pulling almost-JSON config back into a strict JSON form.

Complex Logs

Use AI only when deterministic repair is not enough

When a payload includes truncation, escape damage, and multiple bracket errors at once, deterministic local rules may not be enough. That is where AI repair becomes useful.

깨진 JSON
1
{"event":"checkout","user":{"id":42,"name":"Maeve"},"items":[{"sku":"A-1","qty":2},{"sku":"B-8","qty":1],"status":"paid"
복구된 JSON
1
{
2
"event": "checkout",
3
"user": {
4
"id": 42,
5
"name": "Maeve"
6
},
7
"items": [
8
{
9
"sku": "A-1",
10
"qty": 2
11
},
12
{
13
"sku": "B-8",
14
"qty": 1
15
}
16
],
17
"status": "paid"
18
}

After this kind of repair, validate the result again before trusting it in downstream workflows.

  1. 01

    Tutorial Step

    1단계 – 깨진 JSON 붙여넣기

    The repair tool needs the original context more than a half-cleaned version. Logs, old API responses, and broken config files are often easier to repair when you keep the raw text intact instead of manually deleting large sections first.

    • 유효하지 않거나 깨진 JSON(예: 로그, 오래된 API, 설정 파일)을 복사합니다.
    • 왼쪽 편집기 패널에 붙여넣습니다. 파일을 드래그 앤 드롭하거나 Import 버튼을 사용할 수도 있습니다.
    • 키에 따옴표가 없거나 끝에 콤마가 있는 등의 오류는 걱정하지 마세요. 이 도구가 이를 복구하도록 설계되었습니다.
    • If the validator already showed a long list of syntax failures, switching here usually saves more time than fixing them one by one.
    • Keeping the raw payload intact gives both local repair and AI repair a better shot at reconstructing the intended structure.
  2. 02

    Tutorial Step

    2단계 – 자동 복구 프로세스

    Not every repair uses AI. Most broken JSON is fixed by deterministic local rules, so the real goal here is to understand the repair order instead of assuming every issue needs an AI rewrite.

    • JSON이 유효하지 않으면 “복구” 버튼이 나타납니다(또는 수동으로 클릭).
    • 먼저 빠른 로컬 복구로 문법 오류를 즉시 수정합니다.
    • 로컬 복구가 충분하지 않으면 의도를 추론해 구조를 고치기 위해 AI 복구 엔진으로 자동 전환됩니다.
    • The progress indicator helps you see whether the page is doing local repair, AI repair, or final validation of the repaired result.
    • If the input is too large for AI repair, split it into smaller logical chunks instead of retrying the same oversized payload.
  3. 03

    Tutorial Step

    3단계 – 복구된 JSON 확인

    A successful repair is not only about making the JSON parse again. You also need to confirm that the result still matches the intended business structure, especially for nested objects, arrays, and partially corrupted logs.

    • 오른쪽 패널에 복구된 유효한 JSON이 표시됩니다.
    • 구조와 값을 확인할 수 있도록 자동으로 pretty‑print 합니다.
    • 유효성 표시를 확인해 표준 JSON 문법을 충족하는지 확인하세요.
    • If the repaired result still looks suspicious, return to the validator or original source instead of pushing it downstream blindly.
    • For logs and configuration, pay special attention to booleans, numbers-as-strings, and datetime fields after repair.
  4. 04

    Tutorial Step

    4단계 – 깨끗한 JSON 사용

    Repair is the recovery step, not the final destination. Once the JSON is usable again, you should immediately move it into the right next tool depending on whether you need validation, readability, schema generation, or field-level review.

    • Copy를 눌러 복구된 JSON을 클립보드에 복사합니다.
    • 백업을 위해 `.json` 파일로 다운로드합니다.
    • 추가로 수동 편집이 필요하면 Apply로 입력 쪽으로 다시 옮기세요.
    • If you need row-and-column review, filtering, or bulk edits, continue into the table editor.
    • If the repaired JSON is now stable, it is also a much better input for schema generation, type generation, and transformation steps.

A more reliable repair workflow

1

Paste the raw broken JSON into Repair JSON before doing broad manual cleanup.

2

Let local repair run first and use that result when it is enough, rather than forcing every case through AI.

3

If the structure is still too broken, split the payload or let AI repair handle the more complex reconstruction.

4

Validate the repaired output next, then move it to the formatter, table editor, or schema tools depending on your goal.

5

If the result matters for team review or rollback, download the repaired version instead of only copying it to the clipboard.

Repair JSON is most useful not because it saves one comma fix, but because it recovers data that would otherwise be blocked from the rest of your JSON workflow.

Practical repair tips

If the payload only has a few syntax problems, repair is fast. If large sections are missing, repair can recover syntax but not invent the original business data.
For very large payloads, split the JSON into logical chunks before repair. Success rates are usually better that way.
Do not ship or store the repaired result blindly. Validate it first, then decide whether it also needs formatting.
If you need to inspect fields one by one after repair, the table editor is often easier than scanning a long JSON blob.

관련 JSON 도구

  • 복구 후에는 데이터를 포맷하거나 검증하거나 변환할 수 있습니다.

자주 묻는 질문

JSON 복구는 어떻게 작동하나요?

복구 시스템은 다층 방식으로 동작합니다. 먼저 JSONRepair 라이브러리로 빠르고 안정적으로 고친 뒤, 기본 패턴 매칭을 적용하고, 마지막으로 복잡한 문제는 AI 제공자(AI, OpenRouter, Groq)로 처리합니다.

데이터는 안전한가요?

네. 로컬 복구(JSONRepair 라이브러리와 패턴 매칭)는 모두 브라우저에서만 실행되며, 데이터를 저장하지 않습니다. 복잡한 문제를 위해 AI 복구를 사용하는 경우 JSON은 처리 목적에 한해 AI 제공자(AI)로 전송되며 저장되거나 학습에 사용되지 않습니다.

어떤 복구 방법을 사용하나요?

1) JSONRepair 라이브러리 — 대부분의 일반적인 문제를 빠르고 정확하게 복구합니다. 2) 기본 복구 — 간단한 문법 오류를 패턴 기반으로 수정합니다. 3) AI 복구 — 복잡한 구조 문제는 AI 등 AI 제공자를 통해 처리합니다.

따옴표나 콤마 누락도 고칠 수 있나요?

네. 키의 따옴표 누락, 끝의 불필요한 콤마, 요소 사이의 콤마 누락, 괄호 불일치 같은 흔한 오류는 로컬 복구 엔진이 자동으로 수정합니다.

AI 복구에 크기 제한이 있나요?

네. 안정성을 위해 AI 복구는 요청당 약 (~18000자)까지 지원합니다. 더 큰 JSON은 로컬(JSONRepair/기본 복구)로 해결하거나, AI 복구 전에 더 작은 조각으로 나눠서 사용해 주세요.

API 키가 필요하나요?

아니요. API 키가 필요하지 않습니다. 복잡한 경우에는 로컬 복구와 기본 수정 위에 (저희가 관리하는) AI API 연동으로 결과를 보강하므로 별도 설정 없이 사용할 수 있습니다.

복구 정확도는 어느 정도인가요?

일반적인 문제는 JSONRepair 라이브러리로 매우 높은 정확도를 제공합니다. 기본 패턴 매칭은 간단한 문법 오류를 처리하고, 필요할 때 AI 제공자가 복잡한 구조 문제를 지능적으로 분석해 복구합니다.

When should I stop auto-repairing and fix the JSON by hand?

If large sections of the payload are missing, truncated, or business meaning depends on context only you know, automatic repair can only recover syntax, not your original intent. In that case, combine validator diagnostics with manual fixes.