about summary refs log tree commit diff
path: root/tvix/eval/src/tests/tvix_tests/eval-okay-builtins-tojson-literals.nix
blob: 12e8c03b171d6e3cf778b55de7c825ca350aa303 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
# tests serialisation of literal data
builtins.toJSON [
  42
  "hello"
  13.37
  [ ]
  [ 1 2 3 ]
  { }
  { name = "foo"; value = 42; }
  { foo = 42; }
]