We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ec0c7b6 commit ca6721cCopy full SHA for ca6721c
core/lib/parameter_hunter.js
@@ -62,6 +62,14 @@ var parameter_hunter = function () {
62
var values = [];
63
var wrapper;
64
65
+ // attempt to parse the data incase it is already well formed JSON
66
+ try {
67
+ paramStringWellFormed = JSON.stringify(JSON.parse(pString));
68
+ return paramStringWellFormed;
69
+ } catch(err) {
70
+ console.log('Not valid JSON - will attempt to parse manually...');
71
+ }
72
+
73
//replace all escaped double-quotes with escaped unicode
74
paramString = paramString.replace(/\\"/g, '\\u0022');
75
0 commit comments