9
I am calling a function in Node.js and it returns a JSON:
{
"pair": "BTCBRL",
"last": 2280.0,
"high": 2306.0,
"low": 2205.0,
"vol": 113.17267938,
"vol_brl": 255658.20705113,
"buy": 2263.0,
"sell": 2279.77
}
I would like to use only the "buy" information of this json, ie, I want to use so:
var buy = "o que vim no json no caso 2263.0";
This Jon is returned in a variable, right? Then just use: var buy = "what I came to in json in the case "+ data.buy; where date is your json.
– Raul Mangolin