Files
spring-boot/core
Andy Wilkinson f6aa92821d Fix BasicJsonParser's escape handling in nested elements
BasicJsonParser tokenizes JSON into map entries (key-value pairs)
and list entries (values). As part of this, any escaped characters
are unescaped. When the values are themselves maps or lists, they
are tokenized again. This multi-pass approach with every pass
performing unescaping causes the escaped characters to be handled
incorrectly.

This commit updates BasicJsonParser to leave escape characters in
place when its parsing characters nested within a list or map. The
escaping is now only considered when parsing a scalar value. This
ensures that unescaping is only performed once.

Fixes gh-51907
2026-10-01 09:08:42 +01:00
..