CA API Management: Sanitize JSON Body of special characters

Document ID : KB000076535
Last Modified Date : 24/04/2018
Show Technical Document Details
Introduction:
Sometimes it may be necessary to remove special characters from JSON values.

I.e: 

{
 "value": "This is a test message ' with special characters $30"
}
 
Instructions:
Attached is a sample policy that can be imported to demonstrate removal of these characters using RegEx.

1) Open Policy Manager
2) Use an existing service or create a new service
3) Click the Import Policy button and browse to the sample policy\
File Attachments:
json.xml