title: jquery ajax post data undefined
body: <p>I have a piece of javascript that uses ajax to get data from my database as such:</p>
  
  <pre><code>$.ajax({
    url: 'getlog',
    data: { id: calEvent.id},
    dataType: "json",
    success: function(data)
    {
       alert(data[id]);
    }
  });
  </code></pre>
  
  <p>If i just alert the 'data' object i get </p>
  
  <blockquote>
    <p>[object Object]</p>
  </blockquote>
  
  <p>The data I am getting back from the ajax request is structured like this:</p>
  
  <p><img src="https://i.stack.imgur.com/CHvOj.png" alt="enter image description here"></p>
  
  <p>I need to be able to get these fields to fill up an edit form (form already exists on my page and I know how to set the values of my edits but I can't access the data)</p>