On Mon, Sep 21, 2015 at 3:37 PM, Siddharth Chhabra <
siddharth.chha...@gmail.com> wrote:

> Quick question about the json support
> 1. Will we get json support if we mix proto2 and proto3 syntax ? is that
> supported ?
>
You can mix that only in a sub-set of the languages (languages with proto2
support: C++, Java, Python and Go). When converted to JSON, proto2-only
features like extensions will be ignored completely.


> 2. Since we are using extensions in proto2, can that be used as a member
> field  in a proto3 syntax file ?
>
Not sure what you mean. You can import proto2 files in proto3 syntax files
(again, only work when compiled into languages with proto2 support) and
declare the type of a proto3 field to be a proto2 message, but you can not
extend a proto3 message or declare an extension to a proto2 message in a
proto3 syntax file.


>
> Please let us know.
>
> On Fri, Sep 11, 2015 at 5:35 PM, Feng Xiao <xiaof...@google.com> wrote:
>
>>
>>
>> On Fri, Sep 11, 2015 at 5:23 PM, Siddharth Chhabra <
>> siddharth.chha...@gmail.com> wrote:
>>
>>> Was this added ?
>>> I cant find the JsonFormat class in the api referenc
>>> The JsonFormat class was mentioned in the thread "Will protobuf support
>>> JSON?"
>>>
>>> The api is here :
>>> https://developers.google.com/protocol-buffers/docs/reference/java/index
>>> We are thinking of upgrading to protobuf 3 and want to make sure json
>>> support is there since otherwise we dont have a need to upgrade.
>>>
>> Sorry, the Java doc hasn't been updated yet. You can find the JsonFormat
>> class here:
>>
>> https://github.com/google/protobuf/blob/master/java/util/src/main/java/com/google/protobuf/util/JsonFormat.java
>>
>>
>>
>>>
>>> Please let us know
>>> Thanks
>>>
>>> --
>>> 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+unsubscr...@googlegroups.com.
>>> To post to this group, send email to protobuf@googlegroups.com.
>>> Visit this group at http://groups.google.com/group/protobuf.
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>>
>>
>

-- 
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+unsubscr...@googlegroups.com.
To post to this group, send email to protobuf@googlegroups.com.
Visit this group at http://groups.google.com/group/protobuf.
For more options, visit https://groups.google.com/d/optout.

Reply via email to