Testing length of JSON array 2