JSON路径 - 使用表达式获取完整的 JSON(按原样)

JSONPath - Get full JSON (as is) using expression

我可以使用 JSONPath 获得 完整的 JSON 字符串 吗?

我使用不同的组合失败了 $ * $..* $*

$ The root element to query. This starts all path expressions.

* Wildcard. Available anywhere a name or numeric are required.

我正在使用 JMeter 的 JSON Extractor,有时我需要使用 JSON 路径表达式

检索 all/full 响应

编辑

与@Daniel 建议的 $[*] 相同的结果

尝试

$[*]

虽然 $.*(和 $..*)也应该有效。所有与 Jayway and Goessner.

一起工作

丹尼尔

我终于找到了使用表达式的解决方案:$ 并将应用更改为:

Main Sample and sub-samples

将完整的JSON保存到变量