Documentation ¶
Overview ¶
Package jsonpb provides marshaling/unmarshaling functionality between protocol buffer and JSON objects.
Compared to encoding/json, this library:
- encodes int64, uint64 as strings
- optionally encodes enums as integers
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.