You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I got {"ori":"16"}.
But what I want is {"ori":16}.
I tried many times and found that if ori defined as uint8 int8 uint int uint32 int32 I can get {"ori":16}.
But if it is int64 uint64 it becomes {"ori":"16"}.
The text was updated successfully, but these errors were encountered:
anotherGoogleFan
changed the title
EnumsAsInts does not work in jsonpb config
int64 AND uint64 become string using jsonpb marshal
Jan 18, 2021
The code is so simple:
I got
{"ori":"16"}
.But what I want is
{"ori":16}
.I tried many times and found that if ori defined as
uint8 int8 uint int uint32 int32
I can get{"ori":16}
.But if it is
int64 uint64
it becomes{"ori":"16"}
.The text was updated successfully, but these errors were encountered: