title: How to send json object to html page in webapp2?
body: <p>I am getting all the data from database through query and converting into JSON object. This JSON object data need to show on html page table. </p>
  
  <p>How can I send the JSON object to html page in using webapp2 framework?</p>
  
  <p>For example : </p>
  
  <pre><code>self.response.headers['Content-Type'] = 'application/json'   
          obj = {
          'success': 'some var', 
          'payload': 'some var'
                } 
  </code></pre>
  
  <p><code>self.response.out.write(obj)</code>  i.e the json object need to send to an html page to show case the output.</p>