Suitable algorithm to find an element in C++ Rest JSON

Feb 21, 2015 at 6:21 PM

I get a huge json from API. I have to find concrete fields.
I would like to know the most suitable algorithm for getting an element from C++ Rest JSON

Feb 23, 2015 at 4:28 PM
Hi ggiloyan89,

It sounds like you have a json object, so you could use the web::json::value::has_field function to check if an object has a field. You can look up fields using the json::value::at(...) or operator[] functions. There are a few examples as well on this wiki documentation page.

Marked as answer by ggiloyan89 on 2/25/2015 at 7:51 AM
Feb 25, 2015 at 2:52 PM
Thank you for the response!