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
JsonCodec should probably automatically initialize itself #1064
Comments
I think you just need to call capnproto/c++/src/capnp/compat/json.h Lines 209 to 217 in ee3aac9
|
Aha! thanks, closing. |
Yeah this has proven to be a source of confusion. :/ Since JsonCodec is designed to be callable from multiple threads, we either need an explicit initialization method, or we need to use thread-safe lazy init, and thread-safe lazy init just feels so hacky, but maybe it's the right thing to do after all. |
Output:
...but iiuc the field should be rendered as
"bar_baz"
.The text was updated successfully, but these errors were encountered: