title: How to deserialize the data using JSONAPI-Serializer module of NodeJs
body: <p>I am working with nodejs and using module named "<a href="https://www.npmjs.com/package/jsonapi-serializer" rel="nofollow noreferrer">JSONAPI-Serializer"</a> for serialization and deserialization purpose.</p>
  
  <p>I am able to serialize the objects without any issue but not able to deserialize the same serialized data.</p>
  
  <p>So,using below code I am able to serialize the data:</p>
  
  <p><strong>root@test$: node test.js</strong>
  <div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>var data = [{ id: 1},{ id: 2 }];
  var JSONAPISerializer = require('jsonapi-serializer').Serializer;
  
  var UserSerializer = new JSONAPISerializer('id', {"test":"me"});
  var users = UserSerializer.serialize(data);
  console.log("Serialized:\n", UserSerializer.serialize(data));</code></pre>
  </div>
  </div>
  </p>
  
  <p>Below is the generated result for the same:-</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>Serialized:
   { data: [ { type: 'ids', id: '1' }, { type: 'ids', id: '2' } ] }</code></pre>
  </div>
  </div>
  </p>
  
  <p>But on deserialization, I am not able to make it work trying to perform the same example as documented in document of "JSONAPI-Serializer".</p>
  
  <p>Can anyone tell me the way to deserialize the above data using "JSONAPI-Serilizer"  ?</p>