Passing parameters to the function with filesearch

I have a list of routes in one of my json files, like Departure=New York, Arrival=Tangier Med. I would like that when the user types a wrong name, for example “Tangier”, the system passes me via function the exact name “Tangier Med” by reading it from the file. I’ve used multiple prompts, but I can’t do this.