-
Im trying to organize data in JSON and needed a library to use to parse JSON files. Is there example code that does that? Like how to read from a file and then parse and return what was inside? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 6 replies
-
This is all in the README. |
Beta Was this translation helpful? Give feedback.
-
Hi again, Im trying to parse a specific field such as "measured_resistance" : "30" for example using my own json file:
And I read this area of the "over worked documentation" line 274:
You may leave the iterators for the range [begin, end): std::vector<std::uint8_t> v = {'t', 'r', 'u', 'e'};
json j = json::parse(v); Is this a good place to start and implement into my own code to parse a specific field? If not, can I get pointed in the right direction? Or how do you recommend I go about this? |
Beta Was this translation helpful? Give feedback.
This is all in the README.