-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Support custom JSON (de)serialization in jsonpb
Introduce jsonpb JSONPBMarshaler and JSONPBUnmarshaler interfaces for custom JSON serialization and deserialization of dynamic messages. jsonpb will delegate to these interface methods passing in the default Marhaler/Unmarshaler in order to preserve the options as well as reuse these for regular protobuf values within the dynamic message.
- Loading branch information
Showing
2 changed files
with
79 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters