0
0
Fork 0
forked from lix-project/lix
lix/tests/lang/eval-okay-fromjson.nix
2022-05-05 12:39:23 +03:00

36 lines
854 B
Nix

builtins.fromJSON
''
{
"Video": {
"Title": "The Penguin Chronicles",
"Width": 1920,
"Height": 1080,
"EmbeddedData": [3.14159, 23493,null, true ,false, -10],
"Thumb": {
"Url": "http://www.example.com/video/5678931",
"Width": 200,
"Height": 250
},
"Subtitle" : false,
"Latitude": 46.2051,
"Longitude": 6.0723
}
}
''
==
{ Video =
{ Title = "The Penguin Chronicles";
Width = 1920;
Height = 1080;
EmbeddedData = [ 3.14159 23493 null true false (0-10) ];
Thumb =
{ Url = "http://www.example.com/video/5678931";
Width = 200;
Height = 250;
};
Subtitle = false;
Latitude = 46.2051;
Longitude = 6.0723;
};
}