Fix ipv6 host parsing
Normalize string to avoid json decoding errors
Raise exception on json decoding errors