Jsonpb convert underscores to camelcase, that is not what i wanted. for example:
{"ttt_aaa":"fdasfdsa"}
After UnmarshalNext and Unmarshal,the result is like this:
{"tttAaa":"fdasfdsa"}
Is it have a way to output like this? Thanks.
{"ttt_aaa":"fdasfdsa"}
If you set Marshaler.OrigName to true, then Marshal will work as you want.
@zombiezen Thanks~
If you set
Marshaler.OrigNameto true, thenMarshalwill work as you want.
THANK YOU!! YOU SAVED MY LIFE
Most helpful comment
If you set
Marshaler.OrigNameto true, thenMarshalwill work as you want.