通过空手道,我如何断言节点不存在?

问题描述

在json净荷下方,如何断定像空手道那样不存在D节点。

{
DTO:{
content : [
A: "";
B: "";
C:""
]
}
}

解决方法

阅读文档:https://github.com/intuit/karate#fuzzy-matching

* def response = { foo: 'bar' }
* match response == { foo: '#present',baz: '#notpresent' }

您的示例不是格式正确的JSON,请不要再这样做。