node.js - Using var in nodejs to search a json file -
this question has answer here:
so im trying search json file tried , didn't return value.
var info = json.parse(body);                      // file website var itemforjson = item.market_hash_name;          // item name try use in json depitems[i].value = parseint(info.itemforjson);   // has number 
use parseint(info[itemforjson]) on last line.