Documentation ¶
Overview ¶
Package jsonpb provides marshaling and unmarshaling between protocol buffers and JSON. It follows the specification at https://developers.google.com/protocol-buffers/docs/proto3#json.
This package produces a different output than the standard "encoding/json" package, which does not operate correctly on protocol buffers.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Marshaler ¶
type Marshaler struct { // Whether to render enum values as integers, as opposed to string values. EnumsAsInts bool // A string to indent each level by. The presence of this field will // also cause a space to appear between the field separator and // value, and for newlines to be appear between fields and array // elements. Indent string }
Marshaler is a configurable object for converting between protocol buffer objects and a JSON representation for them
Directories ¶
Path | Synopsis |
---|---|
Package jsonpb is a generated protocol buffer package.
|
Package jsonpb is a generated protocol buffer package. |
Click to show internal directories.
Click to hide internal directories.