jsonString
The jsonString function converts an unknown value to a normalized JSON string.
jsonString(value: unknown): string| Type | Description | |
|---|---|---|
value | unknown | The value to serialize. |
| returns | string | A JSON string with sorted keys. |
This function provides deterministic JSON serialization by sorting object keys alphabetically, ensuring that equivalent objects always produce identical string representations. This is essential for generating consistent hashes and comparing data structures.
Since
v0.0.0