script languages can easily dealing with JSON, butin C/C++ is actually difficult.can protobuf support json encode/decode?
--
You received this message because you are subscribed to the Google Groups "Protocol Buffers" group.
To post to this group, send email to prot...@googlegroups.com.
To unsubscribe from this group, send email to protobuf+u...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/protobuf?hl=en.
> 2011/4/1 ZHOU Xiaobo <xb....@qq.com>
>>
>> script languages can easily dealing with JSON, but
>> in C/C++ is actually difficult.
>> can protobuf support json encode/decode?
A few weeks ago, someone on my team wrote something in Ruby to
generate the .proto file that would be associated with the JSON that
we're expecting, plus the necessary YAJL code to parse the JSON in
C++.
It's not that hard to do, but we can't open source our work (it's too
raw in any case).
-a
--
Austin Ziegler • halos...@gmail.com • aus...@halostatue.ca
http://www.halostatue.ca/ • http://twitter.com/halostatue
There is mention in official documentation https://developers.google.com/protocol-buffers/docs/proto3#json
that says JSON encoding/decoding is supported by prtotobuf.
But in release notes https://github.com/google/protobuf/releases it is said
that json encoding should be implemented in 3 version of protocol.
Also there is no json encoder/formatter in source code.
So it's not clear for me is it implemented or not?
In case it's not, will it be implemented in the future?
If this functionality already exists does any one can provide example how to make such conversion?
I'm especially interesting in Java implementation of protobuf -> json conversion and vice verse.
If any one has information on topic I would be very grateful.
On Friday, April 1, 2011 at 11:32:42 PM UTC+3, Austin Ziegler wrote:On Fri, Apr 1, 2011 at 11:19 AM, Konrad Malawski
<konrad....@project13.pl> wrote:
> Sure, just google "protobuf json" -> http://code.google.com/p/protobuf-json/> 2011/4/1 ZHOU Xiaobo <xb....@qq.com>
>>
>> script languages can easily dealing with JSON, but
>> in C/C++ is actually difficult.
>> can protobuf support json encode/decode?A few weeks ago, someone on my team wrote something in Ruby to
generate the .proto file that would be associated with the JSON that
we're expecting, plus the necessary YAJL code to parse the JSON in
C++.It's not that hard to do, but we can't open source our work (it's too
raw in any case).-a
--
Austin Ziegler • halos...@gmail.com • aus...@halostatue.ca
http://www.halostatue.ca/ • http://twitter.com/halostatue
--
You received this message because you are subscribed to the Google Groups "Protocol Buffers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to protobuf+u...@googlegroups.com.
To post to this group, send email to prot...@googlegroups.com.
Visit this group at http://groups.google.com/group/protobuf.
For more options, visit https://groups.google.com/d/optout.
JSON conversion utility function is expected to be compatible with proto-lite library?
I looked at the 3.0 beta package and I believe the JSON support is not in yet. Am I correct?
Visit this group at https://groups.google.com/group/protobuf.
I use the C++ package.