Categorygithub.com/openbazaar/jsonpb
modulepackage
0.0.0-20171123000858-37d32ddf4eef
Repository: https://github.com/openbazaar/jsonpb.git
Documentation: pkg.go.dev

# README

jsonpb

Modified Protobuf to JSON serializer in Go

Forked from the protobuf library to fix a couple issues:

  1. Go type uint64 was always serialized as a string regarless if the number was large or not. This changes it to only serialize numbers as strings if they are greater than 2^32 (regardless of Go type).

  2. When EmitDefaults is set to false, it should not fail to emit enums with a value of zero.

# Packages

Package jsonpb is a generated protocol buffer package.

# Functions

Unmarshal unmarshals a JSON object stream into a protocol buffer.
UnmarshalNext unmarshals the next protocol buffer from a JSON object stream.
UnmarshalString will populate the fields of a protocol buffer based on a JSON string.

# Structs

Marshaler is a configurable object for converting between protocol buffer objects and a JSON representation for them.
Unmarshaler is a configurable object for converting from a JSON representation to a protocol buffer object.