在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称:shafreeck/pb2json开源软件地址:https://github.com/shafreeck/pb2json开源编程语言:C++ 87.3%开源软件介绍:1. Introducton:Decode protobuf to json format It depends on jansson(https://github.com/akheron/jansson) to pack json Support all type of protobuf Message (example: see test/person.proto) and binary bytes(jansson does not support binary bytes) will be translated to hex sequence 2. InstallThis library depends on jansson(http://www.digip.org/jansson/) We assumed you have installed protobuf 1) install jansson
2)install pb2json (is simple)
3. Test & example
4. UsageYou can refer to $src/test/test_json.cpp It is pretty simple to use ,and we just have one API:
return json string if sucess ,NULL if failed,it should be freed by caller There is another variance:
|
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论