0
回答
关于google protocbuf Message转json
华为云实践训练营,热门技术免费实践!>>>   
BidResponse builder = (BidResponse) mediaData;
String buildStr = builder.toString();


打印buildStr输出:

id: "no123465"
seatbid {
  bid {
    id: "343434"
    impid: "1234"
    price: 10000.0
    nurl: "http://www.baidu.com"
    bundle: "com.alicall.androidzb"
    cat: "3"
    adm_native {
      ver: "1.0.1.01"
      assets {
        id: 1000
        required: true
        img {
          url: "http://d.zhidian3g.cn/zhidian-smart/uploads/appimages/201512/2015122910532026020.png"
          w: 720
          h: 100
        }
        link {
          url: "www.baidu.com"
          clicktrackers: "2"
        }
      }
      link {
        url: "www.baidu.com"
        clicktrackers: "2"
      }
      imptrackers: "imptrackers"
    }
  }
}
bidid: "12345543"



这个,有没办法转成json,在线等,急。



举报

以下是问题补充:

  • @平行世界中 :解决了: http://blog.csdn.net/crazyhacking/article/details/39295419?ADUIN=718085078&ADSESSION=1457570730&ADTAG=CLIENT.QQ.5455_.0&ADPUBNO=26550 (2年前)
顶部