title: How to parse string to an array using node.js?
body: <p>I am a getting a <code>JSON</code> response from an external Api:</p>
  
  <pre><code>{
    "statusCode": 200,
    "data": {
      "Response": "R00=03&amp;R01=Invalid User",
      "TokenStatus": "Used"
    }
  }
  </code></pre>
  
  <p>But I need to be able to parse the <code>data.Response</code> string to determine whether the request was successful. In case of success the string will be similar to:</p>
  
  <blockquote>
    <p>R00=00&amp;R01=Balance Added. &amp;R02=59.00&amp;R03=1.00</p>
  </blockquote>
  
  <p>in case of fail it will be similar to </p>
  
  <blockquote>
    <p>R00=03&amp;R01=Invalid User </p>
  </blockquote>
  
  <p>I need to parse it into a JS object like:</p>
  
  <pre><code>{
      "R00": "00",
      "R01": "Balance Added. ",
      "R02": "59.00",
      "R03": "1.00"
  }
  </code></pre>