Added JSON configuration support.