query
On this page

fromJSON

builtins.fromJSON

Primop
Docs pulled from | This Revision | 12 minutes ago

Takes 1 arguments

e


Convert a JSON string to a Nix value. For example,

builtins.fromJSON ''{"x": [1, 2, 3], "y": null}''

returns the value { x = [ 1 2 3 ]; y = null; }.

This function is not declared in a .nix file

Noogle also knows

Aliases
Detected Type
fromJSON :: String -> a