added customizable JSON writer from https://gist.github.com/mcs07/5885661
Merge pull request #544 from scopatz/jsoncust

Added customizable JSON writer from...