title: Sending json by curl to node.js that will read it
body: <p>Could you help me with this one?</p>
  
  <p>I'm sending request type: post, to node.js server:</p>
  
  <pre><code>curl -i -X POST -H 'Content-Type: application/json' -d "{'name':'somename','year':'2009'}" http://localhost:3000/achivements
  </code></pre>
  
  <p>In backend server, I'm reading it thru the express:</p>
  
  <pre><code>exports.addAchivement = function(req, res) {
     var achivements = req.body;  
     console.log(achivements);
     res.send(achivements);
     (...)
  </code></pre>
  
  <p>Now I want to create JSON object with achivements. So I can acces variables like achivements.name;
  The problem is I can't.
  achivements = JSON.parse(achivements) is not working
  And console.log(achivements) is throwing //"{'name':'someone','year':'2009'}": ""</p>
  
  <p>How can I make JSON object with it, to use it lately?</p>
  
  <p>Regards, and many thanx for any help :)</p>