aboutsummaryrefslogtreecommitdiff
path: root/tests/lang/eval-okay-tojson.nix
blob: 0d4e55b3d3679aa5e722d6ed489b0e283c0b5533 (plain)
1
2
3
4
5
6
7
8
9
10
11
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;
  }