now json returns an array of objects from files