Try this: Import Rows from a CSV File and Convert to JSON #20

Closed
flyingzumwalt opened this Issue Feb 29, 2016 · 0 comments

Comments

Projects
None yet
1 participant
@flyingzumwalt
Collaborator

flyingzumwalt commented Feb 29, 2016

Everyone should try this, or at least think through how you would write the code and test it. If you have time, take a stab at it before Wednesday so we can consider the different approaches we come up with. This will give us an opportunity to look at API design, IO streams, and unit testing with tape (see the tape examples.

Write a module that

  • opens a CSV file
  • converts each row from the CSV to JSON
  • returns the JSON

Ideally write at least one test.

If you get it working, post the code to your fork of jawn and submit a Pull Request.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment