Closed UncleWangKing closed 5 years ago
Sorry .I can't Find this method printToString() in class com.googlecode.protobuf.format in tag 1.4 which I see In README.md as
For Json output, use JsonFormat
Message someProto = SomeProto.getDefaultInstance(); JsonFormat jsonFormat = new JsonFormat(); String asJson = jsonFormat.printToString(someProto);
Sorry .I can't Find this method printToString() in class com.googlecode.protobuf.format in tag 1.4 which I see In README.md as
For Json output, use JsonFormat
Message someProto = SomeProto.getDefaultInstance(); JsonFormat jsonFormat = new JsonFormat(); String asJson = jsonFormat.printToString(someProto);