export: added JSON support
Merge pull request #72 from rogerc/json_support

export: added JSON support