How rows become objects
The conversion follows one rule, which is what makes the output predictable: the header row becomes the object keys, and every data row becomes one object. A file with columns name, email and plan turns into an array of objects, each with a name, email and plan property. Because every row produces the same set of keys, the result is uniform. Your code can read a property without first checking that it exists, which is what makes the output safe to feed straight into a parser, a database seeder or an API request body.