title: Why is Javascript returning [object Object]?
body: <pre><code>&lt;script type="text/javascript"&gt;
    $("#sign_up").on('click', function() {
      $.post('./includes/ajax.php', { action: 'register' } , function(result) {
        var result = JSON.parse(result);
          if(result ) { $("#register_result") = result; document.write(result); }
      });
    });
  $("#register_form").submit(function() {
    return false;
  });
  &lt;/script&gt;
  </code></pre>
  
  <p>In the console it's returning "All inputs must be entered" - which is what I want it to return.</p>
  
  <p>However, the alert is returning [object Object].  Why is this?</p>