old_contents: '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;
  
new_contents: '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);
      for (let result in reskey){
        console.log(result);
      }
  
    }).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;
  
subject: Update index.js