- Set a custom JsonSerializer on the connection.