public class JsonFormat
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
JsonFormat.Parser
A Parser parses JSON to protobuf message.
|
static class |
JsonFormat.Printer
A Printer converts protobuf message to JSON format.
|
static class |
JsonFormat.TypeRegistry
A TypeRegistry is used to resolve Any messages in the JSON conversion.
|
Modifier and Type | Method and Description |
---|---|
static JsonFormat.Parser |
parser()
Creates a
JsonFormat.Parser with default configuration. |
static JsonFormat.Printer |
printer()
Creates a
JsonFormat.Printer with default configurations. |
public static JsonFormat.Printer printer()
JsonFormat.Printer
with default configurations.public static JsonFormat.Parser parser()
JsonFormat.Parser
with default configuration.