protoc-gen-ts icon indicating copy to clipboard operation
protoc-gen-ts copied to clipboard

Add support for google.protobuf.Any's pack and unpack methods and correct JSON serialization

Open tomasweigenast opened this issue 1 year ago • 1 comments

.pack and .unpack methods should be implemented and add compatibility with the toObject method, to allow JSON serialization.

Another change to be made to the toObject method is how it serializes Timestamp and Duration. Timestamp should be serialized to a ISO 8601 string, and Duration to "12m54s", as an example.

tomasweigenast avatar Jul 15 '22 00:07 tomasweigenast

Related to #148

thesayyn avatar Jul 15 '22 12:07 thesayyn

This is fixed with the rust rewrite.

thesayyn avatar Nov 16 '23 01:11 thesayyn