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

Feb 21, 2015 at 7:21 PM
Hi

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

Thanks
Feb 23, 2015 at 5: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.

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