parse_in_place preserves structure but no keys/value extracted #474
Unanswered
shivamkedia17
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
Trying to perform some input (schema) validation using this library. I noticed that on some occasions, the
tree
obtained after parsing has the structure of the file, but doesn't have keys/values. I'm slightly new to cpp, and it's been a couple hours but I haven't been able to figure out whether it's some memory issue or if I'm using some functions incorrectly.Snippet of the
yaml
buffer:After parsing, the buffer and creating a tree:
Snippet of
std::cout << tree << std::endl;
This is the yaml file for reference:
This is the rest of the code for reference:
Any help is appreciated, thanks!
Beta Was this translation helpful? Give feedback.
All reactions