Derive Serialize/Deserialize and round-trip a struct.
Category: Utilities
Stdlib Minitest spec — no extra gems needed.
Cache an expensive call with the `||=` idiom.
Generate a v4 UUID with the SecureRandom stdlib.
Parse a JSON string into a Hash and convert back with the json stdlib.
Round-trip JSON with the JSON module: decode to a Perl hashref and re-encode.