From 4d0e51753c24f8c250e3d00542198d5c0d353c6d Mon Sep 17 00:00:00 2001 From: Colin Doig Date: Tue, 4 Oct 2016 08:30:59 +1300 Subject: [PATCH] replace $.parseJSON() with JSON.parse(). parseJSON() is deprecated from jquery version 3. JSON.parse() is supported by IE 8 and above. --- jquery.plugin.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jquery.plugin.js b/jquery.plugin.js index 50470fe..c43ba3b 100644 --- a/jquery.plugin.js +++ b/jquery.plugin.js @@ -217,7 +217,7 @@ var count = data.substring(0, i).match(/"/g); // Handle embedded ':' return (!count || count.length % 2 === 0 ? '"' + group + '":' : group + ':'); }); - data = $.parseJSON('{' + data + '}'); + data = JSON.parse('{' + data + '}'); for (var name in data) { // Convert dates var value = data[name]; if (typeof value === 'string' && value.match(/^new Date\((.*)\)$/)) {