DiagramPreview
기본 파서AI 없음로컬 미리보기내보내기디버깅

JSONPath 테스터

JSONPath 테스터 내용을 붙여 넣고 설정, API 응답, SEO 파일, AI 생성 스니펫을 점검할 수 있는 로컬 미리보기를 생성합니다.

예제
Matched values준비됨
Your JSONPath matches will appear here.

관련 도구로 계속하기

현재 미리보기를 가까운 워크플로로 옮겨 변환, 디버깅 또는 내보내기를 계속하세요.

SQL to ER Diagram

Convert CREATE TABLE SQL into a Mermaid ER diagram.

열기
JSON Schema Visualizer

Inspect JSON Schema properties, types, required fields, and composition groups.

열기
JSON Schema 폼 미리보기

JSON Schema 폼 미리보기: 이 소스를 로컬에서 미리보고 기술 문서용으로 디버깅합니다.

열기

사용 방법

  1. 1Paste a representative JSON payload and keep the first line as the JSONPath expression.
  2. 2Use samples such as email extraction, first order total, or recursive duration to learn the expected input shape.
  3. 3Check match count, first match, and result rows before copying the expression into tests or documentation.
  4. 4If the result is empty, simplify the expression one segment at a time until the path starts matching again.

사용 사례

API response debuggingWebhook payload reviewTest assertion designAI JSON output validationNested array inspection

FAQ

Why does my JSONPath return no matches?

The most common causes are a missing root selector, an array segment that needs [*], a field name typo, or a payload shape that differs from the example used to write the expression.

How do I debug a complex JSONPath expression?

Start with $ or a known top-level field, then add one segment at a time. Confirm the match count after each step before adding filters or recursive selectors.

Is this a replacement for a production JSONPath library?

No. Use it as a preview and review surface, then verify final behavior with the same JSONPath library used by your application or tests.

JSONPath Tester helps you inspect API responses, fixture files, webhook payloads, and AI-generated JSON without writing a temporary script.

The preview highlights matched values, result shape, and a match table so you can confirm whether an expression is selecting the field you expected.

It is especially useful for test assertions, monitoring payload checks, documentation examples, and debugging nested arrays where a wrong wildcard silently returns too much or nothing.

Demo: extract user emails from a nested API response

A practical JSONPath review starts with a payload that looks like production but removes sensitive values. The tester should show both the matched values and the path shape so you can turn the expression into a test assertion.

  • Use $..email when email fields can appear at different depths.
  • Use $.users[*].email when the schema is stable and you want stricter matching.
  • Prefer strict paths for tests and recursive paths for exploration.
$.users[*].email
{
  "users": [
    {"id": 1, "email": "ada@example.com"},
    {"id": 2, "email": "grace@example.com"}
  ]
}

The first line is the expression; the rest is the JSON payload to inspect.

JSONPath mistakes worth catching before code review

A JSONPath expression can look correct while selecting the wrong level of a nested payload. Previewing the result makes these mistakes visible before they become flaky tests or broken docs.

  • Recursive selectors can match fields from unrelated objects.
  • Array indexes such as [0] are fragile when examples do not represent production order.
  • Filters should be checked against payloads with both matching and non-matching records.

JSONPath 테스터 검토 체크리스트

문서, PR, 장애 회고, 인수인계 전에 소스 내용을 시각적으로 확인할 때 JSONPath 테스터을 사용할 수 있습니다. JSONPath 테스터: 이 소스를 로컬에서 미리보고 기술 문서용으로 디버깅합니다.

내보내기 전 라벨 가독성, 관계 정확성, 민감 정보 포함 여부, 입력 수정 후 미리보기 일관성을 확인하세요.

제한과 문제 해결

미리보기가 실패하면 입력을 가장 작은 완전한 예제로 줄이고 문법을 확인한 뒤 섹션을 다시 추가하세요.

미리보기는 검토 화면이지 사실의 원천은 아닙니다. 중요한 결과는 사람이 확인해야 합니다.

테스트할 예제 입력

  • User emails: $.users[*].email --- { "users": [ {"id": 1, "email": "ada@example.com", "role": "admin"}, {"id": 2, "email": "lin@example.com", "role": "viewer"} ] }
  • First order total: $.orders[0].total --- { "orders": [ {"id": "ord_1", "total": 49.9}, {"id": "ord_2", "total": 19.5} ] }
  • Recursive duration: $..durationMs --- { "trace": { "durationMs": 340, "spans": [{"name": "api", "durationMs": 120}, {"name": "db", "durationMs": 180}] } }

도구 완성도

기본 파서

기본 파서

이 도구는 빠른 구조 점검에 초점을 둡니다. 리뷰와 디버깅에 사용하고 중요한 결과는 별도로 검증하세요.

라벨은 안정적인 내보내기, 깊은 디버깅, 빠른 파싱, AI 보조 생성 중 어디에 더 적합한지 알려줍니다.