Conveniance function for loading JSON files