Add support for JSON

In addition to the MySQL and XML code, it now lets the user generate
JSON code too.
Merge pull request #4 from abhishekbhardwaj/master

Adds support for JSON.