Changed json to an array of objects to pull from with .each