Based on #699 and earlier version of code. The default deserialisation method should be able to parse safe integer using JSON.parse but the parsing never happens.
Code extracted from my project:
const config = await redis.hgetall(key);
if (!config) return undefined;
console.log(config);
outputs:
{
lastModified: '2024-05-05T16:59:16.159+00:00',
memory: '4',
memoryBy: '702740689846272002',
version: '7'
}