title: Parsing string into dictionary
body: <p>i would like to transform in an elegent way this kind of string :</p>
  
  <p><code>"{lastname=Oba, firstname=Bar}"</code></p>
  
  <p>to </p>
  
  <pre><code>var person = [];
  person["firstName"] = "Bar";
  person["lastName"] = "Oba";
  </code></pre>
  
  <p>I try with JSON parse but not working, 
  i don't know how to that without dirty spliting </p>