* resource.json
[{"id":15,"name":"Java2","info":"1234132","count":0},{"id":14,"name":"C#111","info":"asdfads","count":0},{"id":13,"name":"basdfadsf","info":"12341234","count":0},{"id":11,"name":"asdfasdfasdf","info":"xxxxx","count":0},{"id":10,"name":"m12341324","info":"12341324","count":0},{"id":9,"name":"test","info":"11111","count":0},{"id":8,"name":"C#","info":"C# \u662f\u4e00\u4e2a\u7b80\u5355\u7684\u3001\u73b0\u4ee3\u7684\u3001\u901a\u7528\u7684\u3001\u9762\u5411\u5bf9\u8c61\u7684\u7f16\u7a0b\u8bed\u8a00\uff0c\u5b83\u662f\u7531\u5fae\u8f6f\uff08Microsoft\uff09\u5f00\u53d1\u7684\u3002","count":1},{"id":7,"name":"Powerbuilder","info":"Powerbuilder\u4e3a\u4ec0\u4e48\u4f1a\u6ca1\u843d\uff1f\u73b0\u5728\u6709\u90a3\u79cd\u5de5\u5177\u53ef\u4ee5\u66ff\u4ee3PB\u505a\u6570\u636e\u5e93\u5f00\u53d1\uff1f","count":0},{"id":6,"name":"\u8fc7\u628a\u763e","info":"","count":1},{"id":5,"name":"Java","info":"Java \u6559\u7a0b Java \u662f\u7531Sun Microsystems\u516c\u53f8\u4e8e1995\u5e745\u6708\u63a8\u51fa\u7684\u9ad8\u7ea7\u7a0b\u5e8f\u8bbe\u8ba1\u8bed\u8a00\u3002 Java\u53ef\u8fd0\u884c\u4e8e\u591a\u4e2a\u5e73\u53f0,\u5982Windows, Mac OS,\u53ca\u5176\u4ed6\u591a\u79cdUNIX\u7248\u672c\u7684\u7cfb\u7edf\u3002","count":1},{"id":1,"name":"PHP","info":"PHP\u662f\u4e00\u79cd\u901a\u7528\u5f00\u6e90\u811a\u672c\u8bed\u8a00\uff0c\u8bed\u6cd5\u5438\u6536\u4e86C\u3001Java\u548cPerl\u7684\u7279\u70b9\uff0c\u5229\u4e8e\u5b66\u4e60\uff0c\u4f7f\u7528\u5e7f\u6cdb\uff0c\u4e3b\u8981\u9002\u7528\u4e8eWeb\u5f00\u53d1\u9886\u57df\u3002\u5b83\u652f\u6301\u51e0\u4e4e\u6240\u6709\u6d41\u884c\u7684\u6570","count":9}]
* read.js
var fs = require('fs');
var rs = fs.createReadStream("./resource.json"), data = "";
rs.setEncoding("utf8");
rs.on("data", function(chunk) {
chunk = unescape(chunk.replace(/\%u/g, "%u"));
data += chunk;
});
rs.on("end", function() {
console.log(data);
})
console.log("END");
node read.js