[go-nuts] Re: Why does unmarshalling this API response return an unexpected EOF?

2018-05-15 Thread Luke IC
Cool, thanks. I've created a new issue on the `jsonpb` repo as well. On Tuesday, 15 May 2018 15:07:44 UTC+10, Tamás Gulácsi wrote: > > > 2018. május 14., hétfő 23:03:46 UTC+2 időpontban Luke IC a következőt írta: >> >> Thanks a lot, I went back and gave json

[go-nuts] Re: Why does unmarshalling this API response return an unexpected EOF?

2018-05-14 Thread Luke IC
do not see escaped quotes on your stackoverflow post, can you post the > raw json exactly as received? > > On Tuesday, 15 May 2018 05:16:59 UTC+8, Luke IC wrote: >> >> Thanks again for the help. Unfortunately it's a third-party API, so I >> won't be able to fix

[go-nuts] Re: Why does unmarshalling this API response return an unexpected EOF?

2018-05-14 Thread Luke IC
Also use this as a reference on what gets mapped to what > https://developers.google.com/protocol-buffers/docs/proto3#json > > On Tuesday, 15 May 2018 05:03:46 UTC+8, Luke IC wrote: >> >> Thanks a lot, I went back and gave jsonpb a go and finally got it >> unmarshalling as

[go-nuts] Re: Why does unmarshalling this API response return an unexpected EOF?

2018-05-14 Thread Luke IC
his fine to do, or is it super inefficient and will cause problems? On Tuesday, 15 May 2018 05:09:04 UTC+10, alex@gmail.com wrote: > > You need to use the go protobuf json decoder > https://github.com/golang/protobuf/tree/master/jsonpb > > On Monday, 14 May 2018 11:24:06 UTC+8

[go-nuts] Re: Why does unmarshalling this API response return an unexpected EOF?

2018-05-14 Thread Luke IC
IQzMm2tDI7w > > The protoc-generated code's Unmarshal parses a *Protocol Buffers* encoded > byte stream, NOT JSON! > > > 2018. május 14., hétfő 5:24:06 UTC+2 időpontban Luke IC a következőt írta: >> >> Hi all, >> >> I'm creating a microservice in Go