title: KOA POST parsing error
body: <p>I'm trying to get the POST data using koa-body-parser but I get the following error :</p>
  
  <pre><code>SyntaxError: Unexpected token e
    at Object.parse (native)
  </code></pre>
  
  <p>This error refer to </p>
  
  <p>/co-body/node_modules/raw-body/index.js</p>
  
  <p>I think that the library co-body is trying to use "parse" but in my node version this function is restricted.</p>
  
  <p>I'm using node 0.11.13</p>
  
  <p>This is a part of the app.js</p>
  
  <pre><code>var path=require('path');
  var koa = require('koa');
  var app = koa();
  
  app.use(require('koa-body-parser')());
  
  //enrutamiento
  app.use(require('./configs/routes')(app));
  </code></pre>
  
  <p>This is the function that recibe the call:</p>
  
  <pre><code>function *(){
      /*
      var str = 'email=lopezchr%40gmail.com&amp;password=123123';
      console.log(JSON.parse(str));
      */
      var self = this;
      var attributes= this.request.body
      var userModel = this.models.user;
      userModel.create(this.request.body).exec(function(){
          self.body={success:true,description:"user Created"}
      });
  }
  </code></pre>
  
  <p>Aditionally, when I try to do this:</p>
  
  <pre><code>var str = 'email=lopezchr%40gmail.com&amp;password=123123';
  console.log(JSON.parse(str));
  </code></pre>
  
  <p>I optain the same error..</p>
  
  <p><strong>update</strong></p>
  
  <p>In other post, I realized that string is not a JSON.. sooo... that is the problem...</p>
  
  <p>I'm trying to do this:</p>
  
  <pre><code>$.post('/auth',$(form).serialize(),function(data){
                      console.log(data);
                  });
  </code></pre>
  
  <p>And I want to recibe the form data with koa-body-parce...What should I do?</p>