method to load json from a file and set it as event value