title: Python Google App Engine Receiving a string in stead of JSON object
body: <p>I am sending a HTTP POST request from android to a server using the script below</p>
  
  <pre><code>            URI website = new URI("http://venkygcm.appspot.com");
  
              HttpClient client = new DefaultHttpClient();
              HttpPost request = new HttpPost(website);
  
              request.setHeader("Content-Type", "application/json");
  
              String currentDateTimeString = DateFormat.getDateTimeInstance().format(new Date());
  
              JSONObject obj = new JSONObject();
              obj.put("reg_id","Registration ID sent to the server"); 
              obj.put("datetime",currentDateTimeString);
  
              StringEntity se = new StringEntity(obj.toString());
              request.setEntity(se);
              HttpResponse response = client.execute(request);
  
              String out = EntityUtils.toString(response.getEntity()); 
  </code></pre>
  
  <p>As I have sent a JSON Object, I must receive a JSON Object in the server. Instead I get a string containing the data of the body. The server is made in Python Google App Engine.</p>
  
  <pre><code> import webapp2
  
  class MainPage(webapp2.RequestHandler):
      def post(self):
          self.response.out.write(" This is a POST Request \n")
          req = self.request
          a = req.get('body')
          self.response.out.write(type(a))
  
  app = webapp2.WSGIApplication([('/', MainPage)], debug=True)
  </code></pre>
  
  <p>I tried what AK09 suggested but i still get a string kind of object. What should be my next step?</p>
  
  <pre><code>import webapp2
  import json
  
  class MainPage(webapp2.RequestHandler):
      def post(self):
          self.response.out.write("This is a POST Request \n")
          req = self.request
          a = req.get('body')
          b = json.dumps(a)
  
          self.response.out.write(type(a))
          self.response.out.write(type(b))
  
  app = webapp2.WSGIApplication([('/', MainPage)], debug=True)
  </code></pre>