Open
Description
Error:
error[E0277]: the type `JsonValue` cannot be indexed by `u32`
--> src/lib.rs:65:12
|
65 | while !parsed["functions"][c].is_null() {
| ^^^^^^^^^^^^^^^^^^^^^^ `JsonValue` cannot be indexed by `u32`
|
= help: the trait `Index<u32>` is not implemented for `JsonValue`
I'm guessing a manually typed in number automatically converts itself to a compatible type for indexing?
Activity
karx1 commentedon Oct 18, 2021
Hi, JsonValue can only be indexed by
usize
.