Skip to content

jayanthdeejay/csv2json

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

csv2json.py converts an input CSV file to JSON.

  python csv2json.py IQP_JSON11.csv

Input CSV file has a header row. Multivalued properties have a numbered suffix and they will be stored in a list as a value in a dictionary with property as the key.

Checkout sample input file IQP_JSON11.csv and output file convertedTo.json.

python -m json.tool convertedTo.json >> pretty.json

Keywords: CSV, JSON, Python, Samvera, Hyrax, Library, Metadata, Digital Preservation

About

Python script to convert a CSV file to JSON

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages