Added JSON file support.