} | } | ||||
function resJson(obj) { | function resJson(obj) { | ||||
res.writeHead(200, { | |||||
this.writeHead(200, { | |||||
"content-type": "application/json" | "content-type": "application/json" | ||||
}); | }); | ||||
this.end(JSON.stringify(obj)); | this.end(JSON.stringify(obj)); |
{ | { | ||||
"name": "webframe", | "name": "webframe", | ||||
"version": "0.2.0", | |||||
"version": "0.2.1", | |||||
"description": "Web server.", | "description": "Web server.", | ||||
"main": "index.js", | "main": "index.js", | ||||
"scripts": { | "scripts": { |