Example parsing JSON string to protobuf message. Compiles to C++ binary or WebAssembly. Change messages.proto to protobuf definition needed.
- Install bazel
cd cc- Run
bazel build :validatorto compile c++ binary and./bazel-bin/validatorto run - Run
bazel build :wasmto compile to WebAssembly and open validator.html to run
Change messages.proto to protobuf definition needed. Update myfile.json with example JSON that will be parsed to protobuf message.
- Install bazel
cd python- Run
bazel run :validatorto run python validator - Or Run
bazel build :validatorto compile and./bazel-bin/validatorto run