Fix format of config to JSON

Fixed issue #1.