JsonFormater.printer convert long to String in Json

100 views
Skip to first unread message

David Yu

unread,
Oct 30, 2018, 2:40:08 PM10/30/18
to Protocol Buffers
Hi,
Currently I encounter the behavior of JsonFormater.printer printing the long(int64) value as String to JSON.
Is there a way to set the JsonFormater.printer not to do this conversion (Long(int64) -> String in Json)?
In my use case, the JSON is not consumed by javascript app, representing the long(int64) as integer in JSON is not a problem.

Thanks
David
Reply all
Reply to author
Forward
0 new messages