DescriptionAlways serialize 64-bit integers as strings in JSON.
This improves compatibility with some other implementations that only
expect strings. Existing implementations using the previous format
should handle both strings and numbers, so switching to pure strings
should be safe.
There is a slight performance impact to this, but only really noticeable
on messages with 100's of repeated int64 fields, so we decided against
adding an option for this.
BUG=https://github.com/dart-lang/dart-protobuf/issues/58
R=skybrian@google.com
Committed: https://github.com/dart-lang/protobuf/commit/221343212db09a35bb9383cb6f3a97c6f3681956
Patch Set 1 #Patch Set 2 : Add test for JSON-coding of int64s #
Messages
Total messages: 9 (2 generated)
|