in commands/util.go [607:620]
func getValueFromResponse(field string, response interface{}) interface{} {
if result, ok := response.(map[string]interface{}); ok {
for key, value := range result {
if key == field {
return value
}
}
}
if result, ok := response.([]interface{}); ok {
return result
} else {
return ""
}
}