title: how to access values in python from json
body: <p>I'm new to Python but required to write a script for API so trying to read the response from API and put it in a file, version is python2.7</p>
  
  <p>Following is the code</p>
  
  <pre><code>import requests 
  import json
  #URL = "someurl"
  # sending get request and saving the response as response object 
  #response = requests.get(url = URL) 
  
  #print(response.status_code)
  #print(response.content)
  items = json.loads('{"batch_id":"5d83a2d317cb4","names": 
             {"19202":"text1","19203":"text2"}}')
  print(items['names'])
  for item in items['names']:
       print(item) 
  </code></pre>
  
  <p>Current output is 
  19202
  19203</p>
  
  <p>But I would like to pick text1,text2 and write to a file, can anyone help how to get those values</p>