added 'json' to the list of acceptable require filetypes

In my use case, I need to require the .json files within the directory. This behavior is supported by the standard require as well.