about summary refs log blame commit diff
path: root/tests/lang/eval-okay-tojson.nix
blob: c046ba4ae59b2fd04f93325f04b4494ead80c66b (plain) (tree)
1
2
3
4
5
6
7
8
9
10









                                             
             
   
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;
  }