title: Passing JSON data to .getJSON in jQuery?
body: <p>I am trying to pass a JSON object to .getJSON but I keep getting a bad request error. This is what I am trying:</p>
  
  <pre><code>var data = {
      "SomeID": "18",
      "Utc": null,
      "Flags": "324"
  };
  
  $.getJSON("https://somewhere.com/AllGet?callback=?", JSON.stringify(data), function (result) {
      alert(result);
  });
  </code></pre>
  
  <p>Currently to get it working, I have to do this, but I do not like how I have to manually construct the query string:</p>
  
  <pre><code>$.getJSON("https://somewhere.com/AllGet?SomeID=18&amp;Utc=&amp;Flags=324&amp;callback=?", null, function (result) {
          alert(result);
      });
  </code></pre>
  
  <p>Anyone know how to make requests easier with JSON objects being passed in? I would appreciate any help or advise.</p>