title: Serialize and de-serialize array (without jquery?)
body: <p>I have a method which sends an ajax request. When the reply from the server is received I need to serialize and later de-serialize</p>
  
  <pre><code>$.ajax({
  //.....
  done(function(data) {
  
  //1 Need to serialize data (which is an array)
  
  
  });
  
  function myFunction() {
    //2 Need to de-serialize data which has been serialized
  
  }
  </code></pre>
  
  <p>I know I could use <code>jquery#serializeArray()</code> if I had a form to serialize:</p>
  
  <pre><code>$( "form" ).submit(function( event ) {
    console.log( $( this ).serializeArray() );
    event.preventDefault();
  });
  </code></pre>
  
  <p>But I don't have a form and data from the server (I guess) has nothing to do with <code>serializeArray</code> function of <code>jquery</code>. So how can I do it? What's one of the best ways? </p>
  
  <p>Preferably not to use any third-party libraries except jquery or even not to use jquery at all.</p>