title: Parse Redis HGETALL object in Node.js
body: <p>I'm trying to parse an HGETALL object in Node.js.</p>
  
  <hr>
  
  <p>In Redis CLI:</p>
  
  <pre><code>&gt; HGETALL userList
  </code></pre>
  
  <p>returns</p>
  
  <pre><code>1) "19578616521094096601"
  2) "User 1"
  3) "1682930884780137383"
  4) "User 2"
  </code></pre>
  
  <hr>
  
  <p>In Node:</p>
  
  <pre><code>var redis = require('redis')
  ,   r = redis.createClient();
  
  console.log(r.HGETALL('userList'));
  </code></pre>
  
  <p>returns</p>
  
  <pre><code>true
  </code></pre>
  
  <hr>
  
  <p>I would like to parse the userList object as JSON or an array but I can't seem to figure out how to pull data out of it.</p>