1
0
Fork 0
forked from lix-project/lix
lix/tests/lang/eval-okay-tojson.nix

14 lines
260 B
Nix
Raw Normal View History

2013-11-18 23:03:11 +00: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;
j = 1.44;
2019-10-27 09:15:51 +00:00
k = { __toString = self: self.a; a = "foo"; };
2013-11-18 23:03:11 +00:00
}