实现效果:
将字符串转换为json、并且在json内部添加元素、将json生成文件
Change the name value for all people
&{before}= Convert string to JSON {"People": [{"Name": "Mark"}, {"Name": "Jane"}]}
&{person}= Create dictionary Name='康康'
&{after}= Add to JSON ${before} $.People ${person}
Save JSON to file ${after} .\\devdata\\output.json encoding=utf-8
log ${after}[People]