title: GAE NDB with Endpoints Proto Datastore:How do i access and modify the response data in google endpoint api for query with ndb model with python
body: <p>I want to manipulate the query response of google endpoint model in python.</p>
  
  <p>I tried this but only fetches query response in json</p>
  
  <pre><code>@Gadget.query_method(collection_fields=('locationPostCode',),path='gadgets', name='gadget.list', query_fields=('ownerID', 'category', 'locationCity','pageToken'))
  
  def GadgetList(self, query):
  
    return query
  </code></pre>
  
  <p>I want that api fetches postcodes and convert into array format and one by one postcode value pass to the other api. </p>
  
  <p>I already try to print the response and convert the response in array format by <code>json.load()</code> but nothing work please provide me the solution.</p>
  
  <p>please help me to solve this. </p>