2 ms·
There's no standard for this and it's mostly not open source as far as I know. The overall approach is called "JSPB" but there are various flavors. A typical us
by skybrian 11y ago
There's no standard for this and it's mostly not open source as far as I know. The overall approach is called "JSPB" but there are various flavors. A typical use case is for a web app that has its own private RPC to its own servers, so interop isn't an issue. Also, web apps generally don't need or want to work with binary data, so better not to send it.
I recently became the maintainer of the Dart protobuf library which supports both JSON and binary format [1], [2]. However, the JSON format isn't necessarily compatible with other protobuf libraries you've seen.
[1] https://github.com/dart-lang/dart-protobuf https://github.com/dart-lang/dart-protobuf
[2] https://github.com/dart-lang/dart-protoc-plugin https://github.com/dart-lang/dart-protoc-plugin