Hi Jerry,

Yes, JsonFormat is working properly for us. 

However, we'd like to use it to implement the OpenTelemetry deviations 
<https://opentelemetry.io/docs/specs/otlp/#json-protobuf-encoding>; is it 
something possible / planned or should we look somewhere else ?

We noticed that one of the deviations related to enumerates can be solved 
with this feature 
<https://protobuf.dev/reference/java/api-docs/com/google/protobuf/util/JsonFormat.Printer.html#printingEnumsAsInts-->
.

Many Thanks!

On Thursday, September 7, 2023 at 5:53:50 PM UTC+2 Jerry Berg wrote:

> Hi John,
>
> Is the Java implementation of JSON Format for protobuf not working for you?
>
> https://github.com/protocolbuffers/protobuf/blob/main/java/util/src/main/java/com/google/protobuf/util/JsonFormat.java
>
>
> On Thu, Sep 7, 2023 at 9:16 AM 'John Green' via Protocol Buffers <
> [email protected]> wrote:
>
>> Hi all!
>>
>> OpenTelemetry documents some deviations regarding mapping protobuf/json. 
>> See here: 
>> https://opentelemetry.io/docs/specs/otlp/#json-protobuf-encoding
>>
>> Is there a way to implement those deviations with the java SDK?
>>
>> Thanks for your help!
>>
>>
>> -- 
>> 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 [email protected].
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/protobuf/e1c3fb2c-d12f-443b-b722-780aa6050a8en%40googlegroups.com
>>  
>> <https://groups.google.com/d/msgid/protobuf/e1c3fb2c-d12f-443b-b722-780aa6050a8en%40googlegroups.com?utm_medium=email&utm_source=footer>
>> .
>>
>
>
> -- 
> Jerry Berg | Software Engineer | [email protected] | 720-808-1188
>

-- 
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/protobuf/ed6ac3e9-f2e6-4fdb-8d29-130064e2c785n%40googlegroups.com.

Reply via email to