Re: [protobuf] Proto3 JSON is there a MessageToJsonString method

2016-06-15 Thread Chad Beaulac
Hi Feng, I just wrote this Github issue: https://github.com/google/protobuf/issues/1690 I'll look into doing it too. -Chad On Wednesday, June 15, 2016 at 12:57:12 PM UTC-7, Feng Xiao wrote: > > > > On Wed, Jun 15, 2016 at 8:17 AM, Chad Beaulac > wrote: > >> I can't find

Re: [protobuf] Proto3 JSON is there a MessageToJsonString method

2016-06-15 Thread 'Feng Xiao' via Protocol Buffers
On Wed, Jun 15, 2016 at 8:17 AM, Chad Beaulac wrote: > I can't find how to serialize a message directly to JSON. It seems that > you have to serialize it to binary first and them to JSON and the same > going in the reverse direction. > > To serialize a message to JSON I have

[protobuf] Proto3 JSON is there a MessageToJsonString method

2016-06-15 Thread Chad Beaulac
I can't find how to serialize a message directly to JSON. It seems that you have to serialize it to binary first and them to JSON and the same going in the reverse direction. To serialize a message to JSON I have to serialize it to binary and then output the binary to a string like this