It gets two type parameters for argument and return value, but argument types shouldn't be restricted to only one. Maybe it'd be better to make argument type just String and let users unmarshal it manually...