1
0
dust/examples/fetch.ds
2023-11-16 02:57:50 -05:00

11 lines
209 B
Plaintext

raw_data = (download "https://api.sampleapis.com/futurama/cast")
cast_data = (from_json raw_data)
names = []
for cast_member in cast_data {
names += cast_member:name
}
(assert_equal "Billy West", names:0)