Serialize frozen collections by value only (#96686)
## What?
Serialize `FrozenMap` as a map and `FrozenSet` as a sequence instead of
exposing their internal fields.
Add JSON shape and round-trip coverage for both collection types.
## Why?
Keep serialized formats tied to collection semantics rather than their
current storage representation. This matches Serde's implementations for
`HashMap` and `HashSet`, which serialize through `collect_map` and
`collect_seq` respectively.
---------
Co-authored-by:
Benjamin Woodruff <github@benjam.info>
Showing
Please
register
or
sign in
to comment