Re: [protobuf] Example of BinaryToJsonString in C++

2016-04-05 Thread Zachary Deretsky
Thank you, I am working on it. Zach. On Tuesday, April 5, 2016 at 11:41:48 AM UTC-7, Feng Xiao wrote: > > See examples here: > > https://github.com/google/protobuf/blob/master/src/google/protobuf/util/json_util_test.cc#L78 > > On Mon, Apr 4, 2016 at 8:45 PM, Zachary Deretsky

Re: [protobuf] Example of BinaryToJsonString in C++

2016-04-05 Thread 'Feng Xiao' via Protocol Buffers
See examples here: https://github.com/google/protobuf/blob/master/src/google/protobuf/util/json_util_test.cc#L78 On Mon, Apr 4, 2016 at 8:45 PM, Zachary Deretsky wrote: > Are there examples of (de)serializing to JSON in C++? > What is TypeResolver and how to create it? >

Re: [protobuf] BinaryToJsonString mishandling strings containing UTF8 multibyte characters

2016-04-05 Thread Zachary Deretsky
Ron, could you post and example and some explanation on how to (de)serialize proto3 to JSON using LIBPROTOBUF_EXPORT util::Status BinaryToJsonString( TypeResolver* resolver, const string& type_url, const string& binary_input, string* json_output, const JsonOptions& options);