safe lookup for JSON files