Change from deprecated $.parseJSON to JSON.parse.

The jQuery function `parseJSON` is now deprecated so we should push to
switch to native `JSON.parse` since all browsers support it.
This commit is contained in:
Brock Whittaker
2017-07-27 12:48:27 -07:00
committed by Tim Abbott
parent 10265dbbd9
commit ac4ac63353
4 changed files with 8 additions and 11 deletions

View File

@@ -341,7 +341,7 @@
if (xhr.responseText) {
try {
serverResponse = jQuery.parseJSON(xhr.responseText);
serverResponse = JSON.parse(xhr.responseText);
}
catch (e) {
serverResponse = xhr.responseText;