title: Convert Object to string and back
body: <p>I need to convert Javascript object to string and then this string back to object.</p>
  
  <p>Objects i get like that:</p>
  
  <pre><code>    var Checked = {};
  
  // Hold all checkboxes
      $('div.list input[type=radio]:checked, input[type=checkbox]:checked').each(function () {
          var $el = $(this);
          var name = $el.attr('name');
          if (typeof (Checked[name]) === 'undefined') {
              Checked[name] = [];
          }
          Checked[name].push($el.val());
      });
  </code></pre>
  
  <p>I know how to do this with array by using join and split, but how to be with objects?
  Now how to convert this object to string?
  How to get back this string to object?</p>