Object must implement IConvertible

Hello. I have a problem with parsing json in batch. Currently i'm using class RetailCommonWebAPI. I know where i have a mistake but don't have any idea how to fix this.

Thanks for help.

new InteropPermission(InteropKind::ClrInterop).assert();

serviceUrl = this.getUrl();

request = RetailWebRequest::newUrl(serviceUrl);
response = webApi.getResponse(request);
responseStr = response.parmData();

map = RetailCommonWebAPI::getMapFromJsonString(responseStr);
mapEnumerator = map.getEnumerator();

My responseStr is str type and this is a mistake. How should i convert him to IConvertible or IDictionary type?

Parents Reply Children