Skip to main content

json_key_unicode_escape

Function json_key_unicode_escape 

Source
pub fn json_key_unicode_escape(key: &str, value: &str) -> String
Expand description

AWS WAF JSON-pointer escape — encode every char of key as \uXXXX so the WAF’s JSON-pointer rule (e.g. /id literal-match) misses, while the backend JSON parser decodes the escape and routes the value to the original field.

Returns the JSON fragment {"<key-escaped>": "<value>"} ready to drop into a request body. Sicuranext 2024 confirmed bypass.