Skip to content

Instantly share code, notes, and snippets.

View ansonhoyt's full-sized avatar

Anson Hoyt ansonhoyt

  • 06:50 (UTC -04:00)
View GitHub Profile
@ansonhoyt
ansonhoyt / excelToJson.rb
Created March 1, 2012 03:03
Convert Excel of Arbitrary Tasks to JSON
#!/usr/bin/env ruby
# Reads an Excel and writes as JSON
# - Assumes header row containing field names, first sheet is read
# - Keeps null values
#
# TODO:
# - accept filename and read based on extension (xlsx, xls, csv).
# - output actual JSON.
# - clean up.