query
On this page

fromJSON

builtins.fromJSON

Primop
Docs pulled from | This Revision | 21 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 defined in a .nix file. It is likely a builtins function or an alias of a builtins function. builtins functions are predefined functions provided by Nix.

Noogle also knows

Aliases
Detected Type
fromJSON :: String -> a