Given that
@nector is working with Json files, I wonder if the problem is an issue that I also faced.
I was working with a REST API,. One of the options was to download a pdf of a delivery ticket. This worked by the rest API sending a response as a string of bytes, which had to be saved into a .pdf file.
I couldn't get it working as access insisted on making the string that was downloaded unicode (is that correct?) with 2 byte characters, but then the .pdf file was rejected and it couldn't be viewed.
The only way I thought I might be able to do this was to have a c type module (external function) that could process the string of bytes without treating it as unicode, but I didn't have the skills to do that.
So I don't know if
@nector is trying to do manipulate a string of bytes in that way.