1
0
dust/examples/json_length.ds

10 lines
220 B
Plaintext
Raw Normal View History

2024-04-27 07:40:05 +00:00
/*
This is is simple program to get the length of a json array.
Use `cargo run --package dust-shell examples/json_length.ds`
*/
input = fs.read_file('examples/assets/data.json')
data = json.parse(input)
2024-06-04 18:47:15 +00:00
length(data)