Class JsonFormat


  • public class JsonFormat
    extends java.lang.Object
    Utility class to convert protobuf messages to/from the Proto3 JSON format. Only proto3 features are supported. Proto2 only features such as extensions and unknown fields are discarded in the conversion. That is, when converting proto2 messages to JSON format, extensions and unknown fields are treated as if they do not exist. This applies to proto2 messages embedded in proto3 messages as well.