Skip to content

Releases: hq6/ProtobufJson

v1.0.1

04 May 04:30
@hq6 hq6

Choose a tag to compare

This release adds error detection for base64 and proto parsing errors.
ProtoToJson will exit with code 1 and print an error message when a parsing error happens, rather than just printing an empty json object {}.

v1.0.0-alpha

07 Apr 18:53
@hq6 hq6

Choose a tag to compare

A thin wrapper over the Protobuf C++ API for converting back and forth between JSON and Protobuf.

Each tarball includes two binaries ProtoToJson and JsonToProto which should both be placed in your PATH for installation.
They are the same binary (hardlinked), but behave differently depending on which name they are invoked under.

This version searches for the given protobuf message among all those defined in the search path, and uses it for conversion if there is a unique match. Otherwise, it will output the list of all matching messages.

Additionally, one can define options in the env variable PROTO_JSON_OPTIONS, which can simplify commands if a particular search path is used often.