I think the problem is not in your Kotlin code, but in your API itself
As I can see your api is not returning pure JSON code. It's returning some html code and below it the Json string. This will make Kotlin code unable to parse the data properly.