JSON
Funkcia provides a safe JSON
module to work with value encoding/decoding without breaking your application.
SafeJSON
SafeJSON provides a safe wrapper around JavaScript's native JSON
methods, returning Result
types instead of throwing exceptions, preserving all signature overloads of the original namespace.
parse
Converts a JavaScript Object Notation (JSON) string into an object, wrapped in a Result
.
stringify
Converts a JavaScript value to a JavaScript Object Notation (JSON) string, wrapped in a Result
.
Last updated
Was this helpful?