My task involves conducting a sanity check on how our application is sending data to the service layer.
Consider the following scenario:
The frontend sends this JSON with the content-type: application/json
{
"description":"\n das!!!'/.xtest",
"topic":"test"
}
From a security standpoint, should special characters in the JSON request payload be escaped before transmission?
What is the best practice for sending or updating JSON with special characters in general?
I have searched extensively for answers but have not found a recommended or widely accepted standard.
Your input would be highly appreciated!