Find the false guarantee in this generated generic JSON helper.
TypeScript
function decode<T>(raw: string): T {
return JSON.parse(raw) as T;
}
type Account = { id: string; active: boolean };
const account = decode<Account>('{"active":"yes"}');
console.log(account.id.toLowerCase());