CSSCommonJS
if (typeof json ==
return json;
} else if (typeof json ==
if (json instanceof Array) {
var newArr = []
for (i =
newArr[i] = arguments
}
return newArr;
} else {
var newObj = {};
for (var name in json) {
newObj[name] = arguments
}
return newObj;
}
}
}
From:http://tw.wingwit.com/Article/program/Java/JSP/201311/20472.html