Curious about the ability to deserialize JSON payload to DynamicMessage while preserving proto names #163
-
I could just be missing something from the docs (still working on being better at reading Rust docs :)) but I'm currently taking a proto descriptor file and using prost-reflect to create a dynamic protobuf message from a JSON payload and it's works great. However, I was wondering if there was the ability to use the original proto names when deserializing the payload back into JSON? Similar to how go has Any help would be greatly appreciated. Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
This should be possible using However, something seems to be broken because the latest version of the docs does not mention those items. I'll look into that - hopefully the docs were just built with the wrong feature flag and the functionality still works |
Beta Was this translation helpful? Give feedback.
This should be possible using
serialise_with_options
and theuse_proto_field_name
option.However, something seems to be broken because the latest version of the docs does not mention those items. I'll look into that - hopefully the docs were just built with the wrong feature flag and the functionality still works