GemJSON function of name and path_dir