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 :validator
to compile c++ binary and./bazel-bin/validator
to run - Run
bazel build :wasm
to 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 :validator
to run python validator - Or Run
bazel build :validator
to compile and./bazel-bin/validator
to run