title: Sending String Data to MVC Controller using jQuery $.ajax() and $.post()
body: <p>There's got to be something I'm missing. I've tried using $.ajax() and $.post() to send a string to my ASP.NET MVC Controller, and while the Controller is being reached, the string is null when it gets there. So here is the post method I tried:</p>
  
  <pre><code>$.post("/Journal/SaveEntry", JSONstring);
  </code></pre>
  
  <p>And here is the ajax method I tried:</p>
  
  <pre><code>$.ajax({
      url: "/Journal/SaveEntry",
      type: "POST",
      data: JSONstring
  });
  </code></pre>
  
  <p>Here is my Controller:</p>
  
  <pre><code>public void SaveEntry(string data)
  {
      string somethingElse = data;
  }
  </code></pre>
  
  <p>For background, I serialized a JSON object using JSON.stringify(), and this has been successful. I'm trying to send it to my Controller to Deserialize() it. But as I said, the string is arriving as null each time. Any ideas?</p>
  
  <p>Thanks very much.</p>
  
  <p><strong>UPDATE:</strong> It was answered that my problem was that I was not using a key/value pair as a parameter to $.post(). So I tried this, but the string still arrived at the Controller as null:</p>
  
  <pre><code>$.post("/Journal/SaveEntry", { "jsonData": JSONstring });
  </code></pre>