refactor JsonConverter to JsonSerializer
replace tcp and http with https for TLS connection