Skip to main content
DevTools24

JSONPath 테스터

JSON 데이터에 대해 JSONPath 표현식을 테스트합니다. 중첩된 객체를 쿼리하고 특정 값을 추출합니다.

JSONPath Syntax:
$ - Root object
.property - Child property
[n] - Array index
[-1] - Last element
[*] - All elements
[0:2] - Slice (start:end)

JSONPath 구문 - 기술 세부 정보

JSONPath는 JSON을 위한 XPath와 같습니다. 루트에는 $, 자식에는 .property, 배열 인덱스에는 [n], 모든 항목에는 [*], 슬라이스에는 [start:end]를 사용합니다. 복잡한 JSON 구조에서 데이터를 추출하는 데 유용합니다.

명령줄 대안

// JSONPath examples\n$.store.books[0].title\n$.store.books[*].author\n$..price\n$.store.books[-1]