Your code seems ok. But the json you provided is not correct it misses out }]} on the end but this can’t be the error because decoding this would have been an error in go. If you print all of your struct
fmt.Printf("%#v\n", dev)
is there any other fields missing?