This is why The Creator gave the world arrays. var msgs = []; for (var i = 0; i < 200; ++i) msgs.push(parseFloat[json[i]['valor' + i]); Note that your JSON data should also keep those "valor" properties as arrays, though in JavaScript you can deal with a bizarre naming scheme like that as in the example above.