Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Map field are not currently supported for JSON #165

Open
vphantom opened this issue Jan 13, 2022 · 1 comment
Open

Map field are not currently supported for JSON #165

vphantom opened this issue Jan 13, 2022 · 1 comment

Comments

@vphantom
Copy link
Contributor

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.

@mransan
Copy link
Owner

mransan commented Jan 17, 2022

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

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants