【发布时间】:2021-06-22 06:22:12
【问题描述】:
{
"response": {
"status": [
{
"code": "red",
"text": "random sentence"
},
{"code": "blue"}
],
"recent": []
}
}
对于上面的 json,我想要正确的 protobuf 语法。下面只是一个大纲来展示这个想法。我知道下面的 proto 是行不通的。
syntax = 'proto3';
map< string, repeated map <string, string > > response = 1;
如何用 protobuf 语法写这个?
【问题讨论】:
标签: protocol-buffers protobuf-net