Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
这是我的预期输出:
[{name: 'ehsan'},{name: 'ali'},{name: 'mammad'}]
如何验证我的输出与具有这种格式的 json 的可变长度列表相匹配?
将该列表分配给一个变量,然后使用 match each
def array = [{name: 'ehsan'},{name: 'ali'},{name: 'mammad'}] Then match each array contains """ { name : '#string' } """