Printing the body inside the interceptor you can see that inside the encoded data the array content is missing, but when doing the JSON encoding manually, there is no data loss.
body: "{\"keyname\":{\"attachments\":[]}}"
It's possible to mutate the request body in pre-request or something?
Still haven't found a way to make it work.
I think it may be a bug because it only happens with this payload object, but it's a must for me.
I figure it out, it happens that the attachments key in that payload, somehow I think it's conflicting with some internal processing, changing the key name to something else solved the issue. 👍
Making a
POST
call with the following payload structure example asdata
:The call payload in the developer tools:
Printing the
body
inside the interceptor you can see that inside the encoded data the array content is missing, but when doing the JSON encoding manually, there is no data loss.It's possible to mutate the request
body
in pre-request or something?Still haven't found a way to make it work. I think it may be a bug because it only happens with this payload object, but it's a must for me.
Any help or guidance will be appreciated.