danielaparker / jsoncons

A C++, header-only library for constructing JSON and JSON-like data formats, with JSON Pointer, JSON Patch, JSON Schema, JSONPath, JMESPath, CSV, MessagePack, CBOR, BSON, UBJSON
https://danielaparker.github.io/jsoncons
Other
717 stars 163 forks source link

bugfix: The parsing position is incorrect, when updating multiple times #396

Closed wbangna closed 2 years ago

wbangna commented 2 years ago

Fixed behaviour: When the json_parser::update() function is called multiple times (streaming) the parsing position is calculated incorrectly when parsing strings. This behaviour is also observable with the function ser_context::column()

See test program: https://gist.github.com/wbangna/12c348fbf30b1bc89ccc6a3ba807268d