Package com.google.protobuf.util
Class JsonFormat
- java.lang.Object
-
- com.google.protobuf.util.JsonFormat
-
public class JsonFormat extends java.lang.Object
Utility class to convert protobuf messages to/from the ProtoJSON format.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
JsonFormat.Parser
A Parser parses the proto3 JSON format into a protobuf message.static class
JsonFormat.Printer
A Printer converts a protobuf message to the proto3 JSON format.static class
JsonFormat.TypeRegistry
A TypeRegistry is used to resolve Any messages in the JSON conversion.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static JsonFormat.Parser
parser()
Creates aJsonFormat.Parser
with default configuration.static JsonFormat.Printer
printer()
Creates aJsonFormat.Printer
with default configurations.
-
-
-
Method Detail
-
printer
public static JsonFormat.Printer printer()
Creates aJsonFormat.Printer
with default configurations.
-
parser
public static JsonFormat.Parser parser()
Creates aJsonFormat.Parser
with default configuration.
-
-