title: WSGI - Set content type to JSON
body: <p>I'm crazy green to WSGI on Google App Engine (GAE).</p>
  
  <p>How do I set the content type to JSON?  This is what I have so far:</p>
  
  <pre><code>class Instructions(webapp.RequestHandler):
      def get(self):
          response = {}
          response["message"] = "This is an instruction object"
  
          self.response.out.write(json.dumps(response))
  
  
  
  application = webapp.WSGIApplication([('/instructions', Instructions)],
                                       debug=True)
  
  def main():
      run_wsgi_app(application)
  
  if __name__ == "__main__":
      main()
  </code></pre>
  
  <p>Additionally, I'm building a few RESTful services, nothing too complicated.  I was using restlets when I was developing in JAVA.  Is there a better framework to be using than WSGI?  The only reason I'm using WSGI is because that was what they used in the App Engine tutorial.</p>
  
  <p>Thanks!</p>