Issues with connection returning JSON.stringfy format w/ Content-Type text/javascript - how to pars
Summary
parsing connectin response with JSON.parseContent
Hi all,
Just returning to VBCS and I checked a problem I had from the early VBCS days on. It seems to be still valid.
I am wondering how to interfere with the connection response that is no JSON and how to make it consumable with VBCS. If you take Apple's iTunes API, eg. https://itunes.apple.com/search?term=Beatles&country=de&media=music&limit=3&lang=de, you will see that the response is a stringified JSON w/ content-type text/javascript; charset=utf-8. All I need to do is to wrap this response with JSON.parse, but I don't see any hook to modify this response. Can anyone please advise?
Tagged:
0