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.


Popular posts from this blog

php - How should I create my API for mobile applications (Needs Authentication) -

5 Reasons to Blog Anonymously (and 5 Reasons Not To)

Google AdWords and AdSense - A Dynamic Small Business Marketing Duo