My Problem is relatively simple:
I make an API call and get the following answer in response:
[{"RowKey":24764}]
The Content-Type I'm receiving is text/html
Somehow, I'm just not able to parse this correctly. neither json_encode
or json_decode
seems to help.
I'm trying to Map the object into my response class:
class ApiResponse {
public $schedules = [];
}
with the json object mapper from: https://github.com/mintware-de/json-object-mapper