var http = require('http'); var product={ productId:301, productName:"Cep Telefonu", salesPrice:130.0 }; var json=JSON.stringify(product,null,4); http.createServer(function (request, response) { response.writeHead(200, {'Content-Type': 'application/json;charset=utf-8'}); response.write(json); response.end(); }).listen(8081); console.log('Sunucu çalışıyor : http://127.0.0.1:8081/');Dosyayı İndir