mransan / ocaml-protoc

A Protobuf Compiler for OCaml
https://mransan.github.io/ocaml-protoc/
MIT License
179 stars 33 forks source link

Proto2 support for JSON encoding #124

Closed rafayepes closed 5 years ago

rafayepes commented 6 years ago

For some reason, JSON encoding seems to only support proto3 syntax. See "Only proto3 syntax supported in JSON encoding".

Any particular reason why proto2 is not supported for JSON encoding?

mransan commented 6 years ago

Hi, there is no standard defined for proto2 encoding to JSON. While it would be possible to apply similar rules as what proto3 does it would still be a custom set of rules that might not be followed by other languages.

mransan commented 5 years ago

As mentioned above I would rather focus on proto3 for JSON.