modulepackage
0.0.0-20170217044417-c7e776914701
Repository: https://github.com/mwitkow/go-nicejsonpb.git
Documentation: pkg.go.dev
# README
Nice Golang Protobuf JSONPB
The jsonpb
implementation of golang/protobuf
has very bad error handling, making it hard to return human-understandable errors.
This is a fork of the Unmarshal
functionality of jsonpb
with fixes for error handling:
- Errors are are now prefixed with a "stack" path of fields that are returned in
- Poor "cannot deserialize into `json.RawMessage" errors now use proper types
- Unknown fields now return a helpful message listing known fields :)
Relevant upstream Issue: https://github.com/golang/protobuf/issues/266
# Packages
No description provided by the author
# Functions
FieldError wraps a given error providing a message call stack.
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
Unmarshaler is a configurable object for converting from a JSON representation to a protocol buffer object.