title: Convert string to Key Value Pair
body: <p>I want to build some key value pair in my application and read it in jQuery.Please consider this sample code:</p>
  
  <pre><code>string s = "'{\"96\": \"0\",";
  s += "\"97\": \"1\"}'";
  HiddenField1.Value = s;
  </code></pre>
  
  <p>and read it in jQuery:</p>
  
  <pre><code>$(document).ready(function (e) {
          var Dictionary = $('#HiddenField1').val();
  
          $.each(Dictionary , function (key, value) {
              alert(key + ': ' + value);               
          });
      });
  </code></pre>
  
  <p>the problem is I want to convert this string to Key Value pairs. I couldn't use <code>jQuery.parseJSON</code> and I got <code>Invalid character</code>.</p>
  
  <p>How I can do this?</p>