understanding arrays and JSON