nix-super/tests/lang/eval-okay-tojson.nix

12 lines
195 B
Nix
Raw Normal View History

2013-11-19 01:03:11 +02:00
builtins.toJSON
{ a = 123;
b = -456;
c = "foo";
d = "foo\n\"bar\"";
e = true;
f = false;
g = [ 1 2 3 ];
h = [ "a" [ "b" { "foo\nbar" = {}; } ] ];
i = 1 + 2;
}