Mask JSON request array

acharyadr
Participant II

Below is my sample JSON request. I am trying to mask data inside of SensitiveData array, in this case, "test1" should be masked. I have tried using $.SensitiveData[*]. as JSON path but it doesn't seem to work. Can someone please guide me to the right direction.

{ "data": "2020-01-01", "SensitiveData": [ "test1" ], "Status": "11223" }
0 3 296
3 REPLIES 3

Did you try $.SensitiveData.*

?

I am not a jsonpath expert. Also jsonpath is sort of loosely specified.

Try a couple other ways and see if you can figure it out.

Thank you Dino for responding. Still no luck. I tried what you suggested and various other ways and still not working. If i use online JSON path evaluator, something like $.SensitiveData.* is working but not on apigee when masking.

Hi DAcharya,

I did some investigation. It looks to me that this is a bug in Apigee's data mask capabilities.

I raised this defect on your behalf: b/154276727

If you want, you can contact Apigee support and ask them to create a tracking ticket, for that bug. That would allow you to inquire the status of the bug via your support contact.

I do not have a workaround for you.