title: SyntaxError: Unexpected end of input
body: <p>I am getting <code>SyntaxError: Unexpected end of input</code>. The code looks fine to me, what am i missing?</p>
  
  <pre><code>function SaveGridster(jsonState) {
          console.log('SaveGridster'); // I CAN SEE THIS IN CONSOLE
          var msttou = {
              "srno": "1",
              "module": "ABT Meter Details",
              "userid": "SYS",
              "jsondata": "jsonState"
          };
  
  
          $.ajax({
              type: "POST",
              contentType: "application/json;charset=utf-8",
              url: BaseAddress + "InstanceDataAPI",
              dataType: "json",
              data: JSON.stringify(msttou),
              success: function (response) {
                  console.log('success');
              },
              error: function (xhr, status, error) {
                  console.log(error);
                  alert(xhr.responseText);
              }
          });
      }
  </code></pre>
  
  <p><strong>CONSOLE:</strong></p>
  
  <pre><code>SyntaxError: Unexpected end of input
      at Object.parse (native)
      at jQuery.extend.parseJSON (http://localhost:2402/Scripts/jquery-1.10.2.js:564:23)
      at ajaxConvert (http://localhost:2402/Scripts/jquery-1.10.2.js:8443:19)
      at done (http://localhost:2402/Scripts/jquery-1.10.2.js:8199:15)
      at XMLHttpRequest.callback (http://localhost:2402/Scripts/jquery-1.10.2.js:8792:8)
  </code></pre>