title: Jquery passing data to ajax function
body: <p>I'm having problems passing data values to the Jquery Ajax function.</p>
  
  <p>I have been using the getJSON function and that was working fine but now I want to use the ajax function and I can't work out how to pass in values.</p>
  
  <pre><code>       $.ajax({
              type: "POST",
              url: '../../../WebServices/ImageLibrary.svc/getimagesinfolder',
              dataType: 'json',
              data: "{ 'id', '2' }",
              contentType: "application/json; charset=utf-8",
              success: function (data)
              {
                  alert('hello');
              }
          });
  </code></pre>
  
  <p>Is this right? Can anyone tell me where i'm going wrong?</p>
  
  <p>Thanks</p>