Scaffolding for recording TLS messages to JSON