Added support for requiring .json files.