<Expected BEGIN_ARRAY but was BEGIN_OBJECT at line...
# stackoverflow
u
Expected BEGIN_ARRAY but was BEGIN_OBJECT at line 1 column 2 path $ Kotlin Retrofit Coroutines For days I have had this problem that I cannot solve since it always gives me an error when loading the data from the api, Help my problem its: FATAL EXCEPTION: DefaultDispatcher-worker-1 java.lang.IllegalStateException: Expected BEGIN_ARRAY but was BEGIN_OBJECT at line 1 column 2 path $ VIEW MODEL @HiltViewModel class RMViewModel @Inject constructor(private val useCase: RMGetCharacterUseCase) : ViewModel() { private val _state = MutableStateFlow(RMListState.Empty) val state:...