to be fair, I think you encountered a minor glitch........ response.json() now sets the content-type to application/json (something that your app should have done already, but probably overlooked).
Returning a json string with text/html as content-type made jquery not aware that that string was a json, but only a string in the need to be parsed.
Moreover, JSON(something) is NOT a jquery function, it's a browser one, and not available on all browsers. That piece of code would never have worked on e.g. IE7.
Now the response is instead a json string "signalled" to be a json object, and jquery parses it correctly
<tl/dr> for the future...Don't EVER overlook content-type. Read about "dataType" on jquery's ajax().