mransan/ocaml-protoc

Map field are not currently supported for JSON

Opened this issue · 1 comments

I'm hitting this error in the gen_record functions of src/compilerlib/pb_codegen_encode_yojson.ml and src/compilerlib/pb_codegen_decode_yojson.ml.

It seems that maps in general, including of scalar types like map <string,string> aren't implemented for Yojson I/O yet.

Yes this is the line that would need to provide the implementation for instance:

Printf.eprintf "Map field are not currently supported for JSON";