resource's type is now map[string]interface{}, this means only JSON objects are allowed now