protobuf json codec

1,160 views
Skip to first unread message

Siju

unread,
Dec 2, 2010, 12:11:17 AM12/2/10
to Protocol Buffers
I have written a json codec for protobuf which uses jackson as the
underlying parsing framework. It is twice as fast for json-protobuf
conversion compared to the json codec at http://code.google.com/p/protobuf-java-format/
and about the same for protobuf-json conversion.

This is the first draft, and I plan to plugin other serialization
schemes like xml.

Appreciate feedback from the community.

Siju Varghese

unread,
Dec 2, 2010, 12:37:45 AM12/2/10
to Protocol Buffers
Missed out the link the source code. Please find the codec I wrote at https://github.com/sijuv/protobuf-codec



--
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.


Esfand

unread,
Dec 3, 2010, 11:55:45 AM12/3/10
to Protocol Buffers
Very nice and well thought-out framework! Works flawlessly
for me so far. It's one of a few Maven apps I've seen that
works out-of-the box, and can be imported to Eclipse without
any hassles. ;-)

Thank you for sharing.



On Dec 2, 7:37 am, Siju Varghese <varghese.s...@gmail.com> wrote:
> Missed out the link the source code. Please find the codec I wrote athttps://github.com/sijuv/protobuf-codec
>
> On Thu, Dec 2, 2010 at 10:41 AM, Siju <varghese.s...@gmail.com> wrote:
> > I have written a json codec for protobuf which uses jackson as the
> > underlying parsing framework. It is twice as fast for json-protobuf
> > conversion compared to the json codec at
> >http://code.google.com/p/protobuf-java-format/
> > and about the same for protobuf-json conversion.
>
> > This is the first draft, and I plan to plugin other serialization
> > schemes like xml.
>
> > Appreciate feedback from the community.
>
> > --
> > 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<protobuf%2Bunsu...@googlegroups.com>
> > .

Kenton Varda

unread,
Dec 7, 2010, 10:13:53 PM12/7/10
to Siju, Protocol Buffers
Hi Siju,

This is pretty cool.  I added it to the third-party add-ons wiki.

Just a minor complaint:  You are not Google, so your code should not live under the com.google package.  Can you please move it to a different package?  Perhaps com.github.sijuv would be appropriate?

--
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.

Siju Varghese

unread,
Dec 8, 2010, 7:54:30 AM12/8/10
to Kenton Varda, Protocol Buffers
Hi Kenton,

Thanks.

I have removed com.google from the package declaration.

Also I have added the following features :
1) XMLCodec : Relies on stax (woodstox) for parsing the xml
2) Faithfully propagate unknown fields in json/xml.

Details are there on the project twiki at https://github.com/sijuv/protobuf-codec/wiki .
Could you also update project link under http://code.google.com/p/protobuf/wiki/ThirdPartyAddOns to indicate the support for xml too.

Would be great to hear the feedback from the community.

Regards,
Siju

rag

unread,
Jul 13, 2012, 11:58:40 AM7/13/12
to prot...@googlegroups.com, ragavendran.k...@bnymellon.com
guys, i'm running rest werbservice with json media type and want to make use of protobuf ; dont know if i need some CUSTOM   httpconverors / message reader/writer implementation...
plz guide me here
Reply all
Reply to author
Forward
0 new messages