sax_parse(iterator, json_sax_t *) string callback clobbers spaces #3574
Labels
solution: invalid
the issue is not related to the library
solution: proposed fix
a fix for the issue has been proposed and waits for confirmation
Description
Implementing a sax_parse consumer. The
string
callback is called with a value that has all spaces removed.Reproduction steps
Create a SAX consumer class derived from json_sax_t. Set a breakpoint in the string method so you can examine the output of the string_t variable the parser passes in. Parse a JSON file that contains a string with at least one interior space.
The value passed to the string method has the spaces removed.
Expected vs. actual results
Input JSON:
Expected output:
Actual output:
Minimal code example
Error messages
Compiler and operating system
Microsoft Visual Studio Community 2019 (Version 16.11.16), Windows SDK 10.0.18362.0
Library version
3.10.5#3 from vcpkg (version 2022-06-17-9268e366206712e38102b28dbd1617697a99ff2e)
Validation
develop
branch is used.The text was updated successfully, but these errors were encountered: