Losing typesafety after wrapping json import in a function - Theo's Typesafe Cult