16-Dec-2020
15:41
- last edited on
04-Jun-2023
21:08
by
JimmyPackets
We're trying to parse JSON objects for parameters in our ASM policy. The content type is application/json. On one of our API endpoints, we receive payload that looks like this:
["sensitive data here"]
I believe this is technically valid JSON as a bare array. It seems that the ASM expects everything to be a key-value pair. How do I parse this payload into a parameter so that I can then mark that parameter for exclusion from logs?
23-Dec-2020 13:30
Hello Brett,
You are right - this is valid JSON, and ASM parses it correctly as valid JSON, but currently there is no way to parse such JSON body as parameter and make it masked.
Could you open SR for it?
Thanks, Ivan