title: Post JSON to a REST service and then iterate it
body: <p>i am having the following issue. I am trying to post a JSON object to a REST service that i have and then iterate it so as to do some database operations. I am getting the object in the REST in the code below but i cannot understand how to use it. I thought that 'data' is a String object and i can do a json.loads(data) but this wont work.  </p>
  
  <pre><code>data = request.stream.read()
  </code></pre>
  
  <p>I am trying to achieve something like</p>
  
  <pre><code>for dat in data:
      result = dat['someJsonAttribute'] 
  </code></pre>
  
  <p>Thanks</p>