title: How to obtain JSON value from Post in a web.py server app?
body: <p>Am using Python 2.7.6 along with web.py server to experiment with some simple Rest calls... </p>
  
  <p>Wish to send a JSON payload to my server and then print the value of the payload...</p>
  
  <p>Sample payload</p>
  
  <pre><code>{"name":"Joe"}
  </code></pre>
  
  <p>Here's my python script</p>
  
  <pre><code>#!/usr/bin/env python
  import web
  import json
  
  urls = (
      '/hello/', 'index'
  )
  
  class index:
      def POST(self):
          # How to obtain the name key and then print the value?
          print "Hello " + value + "!"
  
  if __name__ == '__main__':
      app = web.application(urls, globals())
      app.run()
  </code></pre>
  
  <p>Here's my cURL command:</p>
  
  <pre><code>curl -H "Content-Type: application/json" -X POST -d '{"name":"Joe"}' http://localhost:8080/hello
  </code></pre>
  
  <p>Am expecting this for the response (plain text):</p>
  
  <pre><code>Hello Joe!
  </code></pre>
  
  <p>Thank you for taking the time to read this...</p>