More flexible support for hooks that would like to skip JSON stringification/parsing (e.g. sockets).