Add feature to export in JSON format.
Fix contentType problem
Remove quotes from error message
Merge pull request #12 from BlackSmith/JSON

Add feature to export in JSON format.