Added option to load json files as data