jorgen / json_struct

json_struct is a single header only C++ library for parsing JSON directly to C++ structs and vice versa
Other
422 stars 57 forks source link

Fix array object skip #25

Closed noodlecollie closed 2 years ago

noodlecollie commented 2 years ago

This PR fixes https://github.com/jorgen/json_struct/issues/24 where the recursive call to skipArrayOrObject() was not performed correctly, resulting in push/pop for arrays and objects becoming mismatched under certain circumstances.