軟體測試

Jsonpath 解析

進行API 測試時必備的

Facebook line

文章目錄

JSONPathDescription
$the root object/element
@the current object/element
. or []child operator
..recursive descent. JSONPath borrows this syntax from E4X.
*wildcard. All objects/elements regardless their names.
[]subscript operator. XPath uses it to iterate over element collections and for predicates. In Javascript and JSON it is the native array operator.
[,]Union operator in XPath results in a combination of node sets. JSONPath allows alternate names or array indices as a set.
[start:end:step]array slice operator borrowed from ES4.
?()applies a filter (script) expression.
()script expression, using the underlying script engine.
PM LIFE DAY

Danny H.

Sr. Product Manager
View Articles

PM LIFE DAY 的站長 Danny H. 過去曾經是企業 founder,目前是一個 Remote PM 工作者,在工作與生活中找到一個平衡點,與大家分享過去的故事與經歷。