Skip to content

Difference between dump() and get() functions #3776

Discussion options

You must be logged in to vote

dump() serializes the entire (sub-)tree. get<T>() returns the node value as the given type T if the node value is convertible to T.

https://json.nlohmann.me/api/basic_json/dump/
https://json.nlohmann.me/api/basic_json/get/

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@AndresDuque
Comment options

Answer selected by AndresDuque
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants