GitHub Copilot suggested this code to serialize an array to JSON.
```rust
let mut r = "[".to_string();
for v in a.items().iter() {
r.push_str(&to_json(v.clone()));
r.push(',');
}
r.pop();
r.push(']');
r
```
Yeah, what will happen if the `v` array is empty?