I want to read muliptle keys and values from json response and store it in another file.
I have tried using robot framework.
name:1
name:2
name: 3
: FOR ${item} IN RANGE 0 5
\ ${readname}= set variable [${item}]['name']
append to list ${z} ${readname}
writeJson ${z}
def writeJson(data):
with open("data_file.json", "w") as write_file:
json.dump(data, write_file)
I expected all values but only last value is stored.