Always 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

Review-Url: https://codereview.chromium.org//2612233003 .
5 files changed
tree: 2584b88ee37e6d743c7ef15c5530609d735314a4
  1. lib/
  2. test/
  3. .analysis_options
  4. .gitignore
  5. .status
  6. .test_config
  7. AUTHORS
  8. CHANGELOG.md
  9. codereview.settings
  10. CONTRIBUTING.md
  11. LICENSE
  12. PATENTS
  13. pubspec.yaml
  14. README.md
README.md

Provides runtime support for a Dart implementation of protobufs.

Typically one do not need to import this library–only libraries generated by the protoc plugin import this library directly.

If your library or application uses generated protobuf libraries, add this library as a dependency.

References