Hi @sravanthib39626 ,
There is no default OOTB feature to sanitise it by default.
Any of the below option you can go with :
1. Overlay the OOTB implemention which is responsible for constructing the json.
2. You can control the values when you are trying to display.
Just curious to understand why we are trying to sanitise.