'use strict'

const express = require('express');
const router = express.Router();
const http = require('http');
const url = 'http://shopping.yahooapis.jp/ShoppingWebService/V1/json/itemSearch?query=fashion&category_id=13457&type=all&image_size=300&affiliate_type=vc&affiliate_id=http%3a%2f%2fck%2ejp%2eap%2evaluecommerce%2ecom%2fservlet%2freferral%3fsid%3d3103511%26pid%3d882391693%26vc_url%3d&appid=dj0zaiZpPUZCV2h2YUZxdnZ5SCZzPWNvbnN1bWVyc2VjcmV0Jng9NmQ-';

http.get(url, (res) => {
  let body = '';
  res.setEncoding('utf8');
  res.on('data', (chunk) => {
    body += chunk;
  });
  res.on('end', (res) => {
    res = JSON.parse(body);
    let reskey = Object.keys(res);
    console.log(reskey.body);           
//Object.keys(res).forEach(function(key){
//      let value = this[key];
//      console.log(key, value);},res);
 //     console.log(res);
//      console.log(res.body);
  }).on('error', (e) => {
    console.log(e.message);
  });
});


/* GET home page. */
  router.get('/', function(req, res) {
  res.render('index', { title: 'Express',title: reskey});
});

module.exports = router;

@@ -701,189 +701,74 @@
 dy);
-           %0A//Object.keys(res).forEach(function(key)%7B%0A//      let value = this%5Bkey%5D;%0A//      console.log(key, value);%7D,res);%0A //     console.log(res);%0A//      console.log(res.body);
+%0A    for (let result in reskey)%7B%0A      console.log(result);%0A    %7D%0A
 %0A  %7D

Update index.js