Categorygithub.com/mwitkow/go-nicejsonpb
repositorypackage
0.0.0-20170217044417-c7e776914701
Repository: https://github.com/mwitkow/go-nicejsonpb.git
Documentation: pkg.go.dev

# Packages

No description provided by the author

# README

Nice Golang Protobuf JSONPB

Travis Build Apache 2.0 License

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