1jQuery(function(){ 2(function($) { 3$.extend({ 4 5 stringifyXX : function stringifyXX(obj) { 6 encodeParam = function(param,urlp) { 7 if (urlp) 8 { 9 param = param.replace(/&/g, "%26"); 10 return encodeURI(param); 11 } 12 else 13 return param; 14 } 15 enc = function(param) { 16 param = param.replace(/\\/g, "\\\\"); 17 param = param.replace(/\"/g, "\\\""); 18 19 return param; 20 } 21 var t = typeof (obj); 22 if (t != "object" || obj === null) { 23 // simple data type 24 if (t == "string") obj = '"' + obj + '"'; 25 return encodeParam(String(obj)); 26 } else { 27 // recurse array or object 28 var n, v, json = [], arr = (obj && obj.constructor == Array); 29 30 for (n in obj) { 31 //alert(n+"-----------"+obj[n]); 32 v = obj[n]; 33 t = typeof(v); 34 if (t!="function") 35 //if (obj.hasOwnProperty(n)) 36 { 37 if (t == "string") v = '"' + enc(v) + '"'; else if (t == "object" && v !== null) v = $.stringifyXX(v); 38 json.push((arr ? "" : '"' + n + '":') + String(v)); 39 } 40 } 41 return encodeParam(arr ? "[" : "{") + String(json) + (arr ? "]" : "}"); 42 } 43 } 44}); 45})(jQuery); 46});
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.