Closed
Description
Symfony version(s) affected
7.3.0
Description
JsonCrawler currently uses stripcslashes
to resolve the escaping of keys in strings to get the actual string content: https://github.com/symfony/symfony/blob/v7.3.0/src/Symfony/Component/JsonPath/JsonCrawler.php#L233
However, the RFC9535 defines escape sequences for Unicode characters, inherited from the JSON syntax: https://www.rfc-editor.org/rfc/rfc9535#name-semantics-3
How to reproduce
Write a JsonPath expression using unicode escape sequences.
Possible Solution
For double-quoted strings, maybe relying on json_decode
could work. But as we need to support single-quoted strings that are not supported in JSON, this might not be worth it.
Additional Context
No response