read file from json