Is there a standard mapping between JSON and Protocol Buffers?

后端 未结 6 1380
后悔当初
后悔当初 2020-12-13 19:02

From a comment on the announcement blog post:

Regarding JSON: JSON is structured similarly to Protocol Buffers, but protocol buffer binary format

6条回答
  •  醉梦人生
    2020-12-13 19:23

    Yes, since Protocol Buffers version 3.0.0 (released July 28, 2016) there is "A well-defined encoding in JSON as an alternative to binary proto encoding" as mentioned in the release notes

    https://github.com/google/protobuf/releases/tag/v3.0.0

提交回复
热议问题