jsoncpp-docs | Doxygen-generated API docs for jsoncpp | REST library
kandi X-RAY | jsoncpp-docs Summary
kandi X-RAY | jsoncpp-docs Summary
Doxygen-generated API docs for jsoncpp
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of jsoncpp-docs
jsoncpp-docs Key Features
jsoncpp-docs Examples and Code Snippets
Community Discussions
Trending Discussions on jsoncpp-docs
QUESTION
I'm using nlohmann/json library to use json in cpp. I have a Json::Value object and I would like to go through my json data by exploring the keys without knowing them. I came across the documentation but only found the object["mySuperKey"]
method to explore the datas which means to know the existing keys.
Can you please give me some tips ?
thanks.
...ANSWER
Answered 2019-Oct-19 at 13:28Well after creating a json Object - there are types that can be iterated.
in this nlohmann::json
implementation you interact with to basic containers (json::object
,json::array
) both has keys that can be easily retrieved or printed.
Here is a small example that implements a function to recursively (or not) traverse the json object and print the keys and value types.
The code of the Example:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install jsoncpp-docs
Clone jsoncpp.
Clone jsoncpp-docs.
Build docs in jsoncpp.
Copy docs to jsoncpp-docs.
Push json-cpp to gh-pages branch.
https://github.com/open-source-parsers/jsoncpp
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page