diff options
Diffstat (limited to 'doc')
-rw-r--r-- | doc/manual/builtins.xml | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/doc/manual/builtins.xml b/doc/manual/builtins.xml index 6a472291c363..b289c6f0ed4b 100644 --- a/doc/manual/builtins.xml +++ b/doc/manual/builtins.xml @@ -257,6 +257,22 @@ stdenv.mkDerivation { </varlistentry> + <varlistentry><term><function>builtins.fromJSON</function> <replaceable>e</replaceable></term> + + <listitem><para>Convert a JSON string to a Nix + value. For example, + +<programlisting> +builtins.fromJSON ''{"x": [1, 2, 3], "y": null}'' +</programlisting> + + returns the value <literal>{ x = [ 1 2 3 ]; y = null; + }</literal>. Floating point numbers are not + supported.</para></listitem> + + </varlistentry> + + <varlistentry><term><function>builtins.getAttr</function> <replaceable>s</replaceable> <replaceable>set</replaceable></term> @@ -762,6 +778,7 @@ in foo</programlisting> </varlistentry> + <varlistentry><term><function>builtins.toPath</function> <replaceable>s</replaceable></term> <listitem><para>Convert the string value |