Added loader method for json files