SyntaxFix
Write A Post
Hire A Developer
Questions
If you always return JSON from the server (no empty responses), dataType: 'json' should work and contentType is not needed. However make sure the JSON output...
dataType: 'json'
contentType
jQuery AJAX will throw a 'parseerror' on valid but unserialized JSON!