serialise redis_record attrs to JSON, to handle notification rule attrs etc.