#include <jsoncons_ext/jmespath/jmespath.hpp>
template <class Json>
class jmespath_expression
Json evaluate(reference doc); (1)
Json evaluate(reference doc, std::error_code& ec); (2)
doc | Json value |
ec | out-parameter for reporting errors in the non-throwing overload |
(1) Throws a jmespath_error if JMESPath evaluation fails.
(2) Sets the out-parameter ec
to the jmespath_error_category if JMESPath evaluation fails.
expr | JMESPath expression |
ec | out-parameter for reporting errors in the non-throwing overload |
(1) Throws a jmespath_error if JMESPath compilation fails.
(2) Sets the out-parameter ec
to the jmespath_error_category if JMESPath compilation fails.