Convert '{key1=value1, key2=value2}' format into an object
<p>I have some strings having a format like this:</p>

<pre><code>'{key1=value1, key2=value2}'
</code></pre>

<p>What's the best way to convert a string with this format into a JavaScript object?</p>

<p>Thanks!</p>
