I'm a bit new to this, so don't be too hard on me despite the fact that I probably sound like a noob.
I have a JSON source that I'm pulling from with the following JS code:
$.getJSON("http://pubapi.cryptsy.com/api.php?method=singleorderdata&marketid=14", function(data)
That gives me an output that looks like the following:
{
"price": "0.00008926",
"quantity": "304.08451708",
"total": "0.02714258"
}, {
"price": "0.00008927",
"quantity": "107.68391178",
"total": "0.00961295"
}
Which I set to a var "result".
Because there are multiple "price" values, I don't know how to just use the first one. Any ideas on how I could do this?
I'm using Node.js and jQuery just for reference.