title: Deserialize a json string to an object in python
body: <p>I have the following string </p>
  
  <pre><code>{"action":"print","method":"onData","data":"Madan Mohan"}
  </code></pre>
  
  <p>I Want to deserialize to a object of class </p>
  
  <pre><code>class payload
      string action
      string method
      string data
  </code></pre>
  
  <p>I am using python 2.6 and 2.7</p>