query
On this page

fromJSON

builtins.fromJSON

Primop
Docs pulled from | This Revision | about 13 hours 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 detected

Aliases

Detected Type
fromJSON :: String -> a

Implementation

This function is implemented in c++ and is part of the native nix runtime.