1
0
dust/examples/json_length.ds

10 lines
225 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)
list.length(data)