This repo contains a JSON marshaler suitable for use with the gRPC-Gateway
when using gogo/protobuf
types.
This fork includes an option to disable HTML escaping, as this isn't easy to workaround with the upstream packages:
95% of the code is copied from the gRPC-Gateway project, so their license applies.
Apart from the above, the gogojsonpb/
package includes
golang/protobuf#409 merged into
https://github.com/gogo/protobuf/tree/master/jsonpb
Their licenses and authorship applies, I just copy-pasted the code here as needed. Special thanks to Paul Nichols (@pauln) who authored the original golang/protobuf#409 patch.
A separate PR has been sent into the gogo
project so perhaps this fork of
https://github.com/gogo/gateway won't be needed, if it gets merged. PR at:
gogo/protobuf#694