title: SyntaxError: Unexpected token C
body: <p>I have the following ajax call which keeps giving the error "SyntaxError: Unexpected token C" ,output of "sync.py: is
  a  valid JSON format as shown below....what am I missing here?looked at other posts and am pretty much covering the suggestions listed..how to fix this error?please suggest</p>
  
  <pre><code>            $.ajax({
                  dataType: "json",
                  type: "POST",
                  contentType: "application/json",//note the contentType definition
                  url: "scripts/sync.py",
                  data: JSON.stringify(data_cp),
                  //data: data_cp,
                  error : function (xhr, ajaxOptions, thrownError){
                      console.log("cherypick fail");
                      console.log(response);      
                      console.log(response['returnArray']);
                      alert(xhr.status);
                      alert(thrownError); 
                  },
                  success: function(response){
                      console.log("cherypick sucess");
                      console.log(response);
                      console.log(response['returnArray']);                       
                  }
              });
  </code></pre>
  
  <p>Error:-</p>
  
  <pre><code>SyntaxError: Unexpected token C
  </code></pre>
  
  <p>OUTPUT OF sync.py which is valid JSON format</p>
  
  <pre><code>Content-Type: application/json
  
  
  {"message": "The Command Completed Successfully", "returnArray": {"faillist": [], "picklist": ["1258565", "1279604"]}, "success": "true"}
  </code></pre>