title: Find user in mongo, with mongoose, and return the result to a JSON
body: <p>I want to search in mongo some user and put them in a json, but everytime I tried it the result that I got is a big object with metadata.</p>
  
  <p>The following code contains what I've done </p>
  
  
  
  <pre class="lang-js prettyprint-override"><code>var myJson = {
                user : User.findOne({
                          firstName: regex,
                          lastName: authorSplitedName.last
                       }, function (err, user){
                          return user;
                       })
               }
  </code></pre>
  
  <p>Thanks a lot for any help!</p>