Encode value to string using a simple non-colliding stable scheme. Handles user-defined types by processing keys on first non-empty prototype. If a user-defined type provides a "toJSON" function, it is used.
The value to convert to a string representation.
Encode value to string using a simple non-colliding stable scheme. Handles user-defined types by processing keys on first non-empty prototype. If a user-defined type provides a "toJSON" function, it is used.