ANSI C port of John Walker's midicsv to output json objects instead of csv!