title: Is there a way to store only required keys and values from json response in to file using robot framework?
body: <p>I want to read muliptle keys and values from json response and store it in another file.</p>
  
  <p>I have tried using robot framework.</p>
  
  <pre><code> 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)
  </code></pre>
  
  <p>I expected all values but only last value is stored.</p>