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