Data Masking in API Gateway Management

API Gateway 10.15

Detailed explanation of the problem:

Data Masking for nested JSON data.
Data Masking works on masking the whole field username to all masked value. However, to mask the username to #ample1, and #ample2, the system return sample1,sample2 as the result. How do we proceed with this as there is no error nor log within tracer funciton.

Sample Data

{
 "accounts":[
    {
       "username":"sample1"
    },
    {
       "username":"sample2"
    }
  ]
}

tried to specify within data masking policy $.accounts.*.username[0] to mask the first character of the username however masking is not done. showing the original data.

hi @Jye_Chen_Tiah ,
Please refer the below article. it talks in depth how to implement the masking.

Regards
Vikash Sharma