table to json

table to json from https://github.com/lightswitch05/table-to-json