Re: JSON format for ProtocolBuffers

2008-10-27 Thread Kenton Varda
It would be pretty easy to write code that serializes or parses java protocol message objects in JSON format using the protobuf reflection interface (see the Message and Builder interfaces). I don't know of any existing implementations, though. On Sun, Oct 26, 2008 at 2:11 PM, Richard <[EMAIL PRO

Re: JSON format for ProtocolBuffers

2008-10-27 Thread Marc Gravell
I would have thought that there was a reflection-based json serializer for java? A quick search yields "JSON-RPC", but I'm not a java bod, so I have no idea if this is any good. Sticking to protocol buffers: not for java, but protobuf-net classes (for .NET) are compatible with DataContractSeriali

JSON format for ProtocolBuffers

2008-10-26 Thread Richard
Hi, Does anyone have JsonFormat class for ProtocolBuffers in Java? Why would this be useful? It would mean that that you could make rpc calls from javascript to your web service that you implemented using protocol buffers and jetty. As an example lets say you have a message with type: message P