mini
mini
CC#
Created by Hass on 3/7/2025 in #help
Converting json to MemoryStream and back breaks the json
Can you share the whole code responsible for receiving the request and outputting the resulting json?
54 replies
CC#
Created by Hass on 3/7/2025 in #help
Converting json to MemoryStream and back breaks the json
so the sending part doesn't seem to be at fault
54 replies
CC#
Created by Hass on 3/7/2025 in #help
Converting json to MemoryStream and back breaks the json
the body
54 replies
CC#
Created by Hass on 3/7/2025 in #help
Converting json to MemoryStream and back breaks the json
54 replies
CC#
Created by Hass on 3/7/2025 in #help
Converting json to MemoryStream and back breaks the json
Maybe that's of help?
54 replies
CC#
Created by Hass on 3/7/2025 in #help
Converting json to MemoryStream and back breaks the json
54 replies
CC#
Created by Hass on 3/7/2025 in #help
Converting json to MemoryStream and back breaks the json
When you manually send the request, what do you receive in postman?
54 replies
CC#
Created by Hass on 3/7/2025 in #help
Converting json to MemoryStream and back breaks the json
nvm its related to something else
54 replies
CC#
Created by Hass on 3/7/2025 in #help
Converting json to MemoryStream and back breaks the json
yup I found something
54 replies
CC#
Created by Hass on 3/7/2025 in #help
Converting json to MemoryStream and back breaks the json
Are you setting the header to application/json? Maybe the receiving end expects that and otherwise escapes it or something like that
54 replies
CC#
Created by Hass on 3/7/2025 in #help
Converting json to MemoryStream and back breaks the json
I feel like maybe that layer causes the escaping
54 replies
CC#
Created by Hass on 3/7/2025 in #help
Converting json to MemoryStream and back breaks the json
Are those two strings from different applications and transmitted via HTTP or similar?
54 replies
CC#
Created by Hass on 3/7/2025 in #help
Converting json to MemoryStream and back breaks the json
hmm in that case there is definitely some intermediate layer between the parts of code you've shown
54 replies
CC#
Created by Hass on 3/7/2025 in #help
Converting json to MemoryStream and back breaks the json
yes
54 replies
CC#
Created by Hass on 3/7/2025 in #help
Converting json to MemoryStream and back breaks the json
No description
54 replies
CC#
Created by Hass on 3/7/2025 in #help
Converting json to MemoryStream and back breaks the json
by the way, you don't need to set Position to 0 on the memory reader, that's a given if constructed from a byte array
54 replies
CC#
Created by Hass on 3/7/2025 in #help
Converting json to MemoryStream and back breaks the json
I cannot replicate, can you try to output the resulting string read via the stream reader?
54 replies
CC#
Created by Hass on 3/7/2025 in #help
Converting json to MemoryStream and back breaks the json
No description
54 replies
CC#
Created by Hass on 3/7/2025 in #help
Converting json to MemoryStream and back breaks the json
No description
54 replies
CC#
Created by Hass on 3/7/2025 in #help
Converting json to MemoryStream and back breaks the json
No description
54 replies