If the header is sent:
Content-Type: text/json
Then parseJSON() does not need to be called. For example:
In a PHP I would set the header like this:
"someValue"));
And in Javascript I would have something like this for the success function:
success: function(response) {
// This will output "someValue" to the console.
// Note the lack of the parseJSON() call. parseJSON() is called for us because the header was sent as text/json
console.log(response.someKey);
}