I'm getting a json: cannot unmarshal string into Go struct field NiResponseJsonStandard.roaming of type numberinsight.NiRoaming error since the roaming field in the return JSON is of type string with value unknown that cannot be unmarshalled into the NiRoaming struct.
Whenever I call the standard number insight on an Italian number
I'm getting a
json: cannot unmarshal string into Go struct field NiResponseJsonStandard.roaming of type numberinsight.NiRoaming
error since the roaming field in the return JSON is of type string with valueunknown
that cannot be unmarshalled into theNiRoaming
struct.Here's decode that causes the issue.