Skip to navigation
Loop iterate over a rust &JsonValue` array
20.07.23
```rust let p = json::parse(&post).unwrap(); let rows = &p["rows"]; if rows.is_array() { let mut index = 0; while index < rows.len() { println!("{:?}", rows[index]); index += 1; } } ```
https://www.hackertouch.com/how-to-iterate-over-an-array-in-rust.html
Reply
Anonymous
Information Epoch 1745450352
Silence is golden.
Home
Notebook
Contact us