title: How do I parse raw data on request?
body: <p>I have a form for submitting <code>post data</code> to a database with Ajax that looks like this: </p>
  
  <pre><code>function markAsRead(id) {
      console.log('Triggered');
      $.ajax({
          type: 'POST',
          url: '/admin/assessment.html',
          data: id,
          success: function(data) {
              if (data.error) {
                  console.log('We had an error.');
              } else if (data.success) {
                  console.log('Marker updated.');
              }
          }
      })
  }
  
  (function() {
      var element = document.getElementsByName('markAsRead');
      for(var i = 0; i &lt; element.length; i += 1) {
          element[i].addEventListener('click', function(e)  { e.preventDefault;
              markAsRead(this.getAttribute('data-value'));
          });
      }
  })();
  </code></pre>
  
  <p>I have multiple Anchors on my page that look like this for example:</p>
  
  <pre><code>&lt;a href="#" name="markAsRead" data-value="5135135"&gt;Mark As Read&lt;/a&gt;
  </code></pre>
  
  <p>I'm just wondering on the <code>Node.js</code> side of things, how might I parse that data, I Tried:</p>
  
  <pre><code>var id = req.body.markAsRead;
  
    console.log('Data is ' + id);
  </code></pre>
  
  <p>But it just says undefined. Any information would be great on how to parse this request data. Thanks! (The <code>Anchor</code> is not inside any form)</p>