successfully created for loop that converted JSON file of array of objects into an array of arrays