当使用Paw解析后续请求的JSON响应正文时,我遇到了以下响应:
{
"named_items": {
"key.with.periods": "stuff stuff stuff",
"key.with.more.periods": "stuff thing stuff"
}
}
在 javascript 中,使用对象上的[]
符号可以直接访问:response.named_items['key.with.periods']
,但是我无法通过右键单击"复制为响应体动态变量"或手动构造来让 Paw 正确捕获值我能想到的任何方式。
有没有办法绕过这个限制?
当然,你可以用反斜杠转义这些点。在您的情况下,这应该有效:
key.with.periods
我们将尝试在下一个版本中使这一点更加明显。谢谢!