Unexpected token < in JSON at position 4
<pre><code>var url="http://fsa.citop.in/lnct/service/signProcess.aspx";
var data={txtLogId: "abc@xyz.com",txtLogPass: "xyz",hdnReqType2: "sign87162"};
var success=function(data, textStatus, jqXHR) {
            console.log(data);
         };

var fail=function(jqXHR, textStatus, errorThrown) {
         console.log("Error:" + errorThrown );
     }
$.ajax({
  type: "POST",
  url: url,
  data:data,
  success:success,
  error:fail,

});
</code></pre>

<p>This POST request gives me the error, <code>SyntaxError: Unexpected token &lt; in JSON at position 4</code>, in the console of the page '<a href="http://fsa.citop.in/lnct/" rel="noreferrer">http://fsa.citop.in/lnct/</a>'  in chrome.</p>

<p>But if I use <code>fsa.citop.in/lnct/service/signProcess.aspx</code> (i.e. no http://), it gives me no error, but nothing comes back in data. On <code>success</code> of POST request, a JSON object is expected. Please somebody explain what is happening here and how it could be resolved.</p>