go-plex-client
go-plex-client copied to clipboard
convert message to json failed: json: cannot unmarshal number into Go struct field Setting.default of type string
I got this error from the websockets stuff:
convert message to json failed: json: cannot unmarshal number into Go struct field Setting.default of type string
{"NotificationContainer":{"type":"preference","size":1,"Setting":[{"id":"LastAutomaticMappedPort","label":"","summary":"","type":"int","default":0,"value":25018,"hidden":true,"advanced":false,"group":""}]}}
Looks like default
can be either a string or int, so we have to deal with that :/ Presumably value
has the same properties.