Go unmarshalling JSON from compessed HTTP: invalid character looking for beginning of value
问题 I've just written my first Go application which downloads and unmarshales simple JSON object over http. Http content is compressed: 'content-encoding': 'deflate' I used several well-known examples (like this). Unfortunately the application fails to parse the desired JSON with quite rare and strange error. I wasn't able to find out what's the problem. Any help will be appreciated. JSON input (Python was used for debugging) In [8]: r = requests.get("http://172.17.0.31:20000/top") In [9]: r.text