Fix issue #294

Allow user to use JSON as configuration file format