C ++ Protobuf到/从JSON转换 [英] C++ Protobuf to/from JSON conversion
本文介绍了C ++ Protobuf到/从JSON转换的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
有没有人熟悉一个稳定的C ++解决方案(库,代码片段等),它将protobuf消息转换为/来自JSON?
Is anyone familiar with a stable C++ solution (library, code snippet etc.) which converts protobuf messages to/from JSON?
推荐答案
这是更好的IMO: https://github.com/shramov/json2pb
它会双向转换并处理扩展
it does conversion in both directions and handles extensions
这篇关于C ++ Protobuf到/从JSON转换的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文