title: If only single quote is passed as parameter in ajax post it throws error
body: <p>The JQuery Code:</p>
  
  <pre><code>var name = jQuery("#name1").val();
  jQuery.ajax({
      url: siteUrl + 'search/ind',
      type: 'POST',
      data: { name: name, },
      success: function(data) {
          jQuery('#input').val('');
      }
  });
  </code></pre>
  
  <p>If only a "'" (single quote is given for search field) , the result is getting at response but due to a JS error it is preventing from appending to html container.</p>
  
  <p>The ERROR:</p>
  
  <pre><code>SyntaxError: missing ; before statement
  ...imit":14,"keyword":{"name":"'"
  </code></pre>
  
  <p>Any help is appreciated as </p>
  
  <p>SOLUTION:</p>
  
  <p>The main reason behind this issue was due to json parsing.... after debugging through code i was able to find the issue and on removing an unwanted parsing the params are getting correctly.Anyway thanks to all who assisted in finding this issue...cheers!!!</p>