Variant 2 version 4 UUIDs provide 122 bits of randomness.
Encode a variant 2 version 4 UUID as a JSON string.
Json.Encode.encode 0 (encode someUUID) -- e.g. "\"e87947aa-42a0-4b96-d5dc-181285004d36\""Decodes a UUID from a JSON string. Fails if UUID is not version 4 or variant 2.
Json.Decode.decodeValue decoder someValue
|> UUID.canonical -- e.g. "e87947aa-42a0-4b96-d5dc-181285004d36"
Generator for version 4 variant 2 UUIDs. See elm-random for more information on using Generators.