added read_file function to JSON structure