摘要: google的protobuf对象转json,不能直接使用FastJson之类的工具进行转换,原因是protobuf生成对象的get方法,返回的类型有byte[],而只有String类型可以作为json的key。google有提供专门的架包,方便protobuf与json之间相互转换。方法如下: 1 阅读全文
posted @ 2018-09-04 17:56 PC君 阅读(51841) 评论(2) 推荐(0) 编辑