Move main configuration to json file