title: parsing json formatted requests in appengine
body: <p>Been working on an appengine app lately. I would like to parse json data contained in requests to the app. How do I use the request object of the requesthandler class to achieve this?</p>
  
  <p>Below is a snippet of the code to show what I want to achieve:</p>
  
  <pre><code>import cgi
  import webapp2
  import datamethods
  
  from google.appengine.ext.webapp.util import run_wsgi_app
  
  class adduser(webapp2.RequestHandler):
      def get(self):
          # Get the phone number from json data in request.
          userphone = self.request.get("phone")
          # Get the name from json data in request.
          name = self.request.get("name")
  
  
  app = webapp2.WSGIApplication([
    ('/adduser', adduser),
    ('/sign', updatestatus),
    ('/login',login)
  ], debug=True)
  
  
  def main():
      run_wsgi_app(app)
  
  if __name__ == "__main__":
      main() 
  </code></pre>