dust/examples/json_length.ds
2024-06-04 14:47:15 -04:00

10 lines
220 B
Plaintext

/*
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)
length(data)