Given a JSON object such as this:
{ \"something\": { \"terms\": [ { \"span\": [ 15, 16 ], \"value\": \":\
Use Array.prototype.filter:
Array.prototype.filter
var numberValue, list = parsed.something.terms.filter(function(a){ return a.label==='number'; }); numberValue = list.length ? list[0].value : -1;