Skip to content

Latest commit

 

History

History
53 lines (37 loc) · 1.09 KB

jmespath_expression.md

File metadata and controls

53 lines (37 loc) · 1.09 KB

jsoncons::jmespath::jmespath_expression

#include <jsoncons_ext/jmespath/jmespath.hpp>

template <class Json>
class jmespath_expression

Member functions

Json evaluate(reference doc); (1)

Json evaluate(reference doc, std::error_code& ec); (2)

Parameters

doc Json value
ec out-parameter for reporting errors in the non-throwing overload

Exceptions

(1) Throws a jmespath_error if JMESPath evaluation fails.

(2) Sets the out-parameter ec to the jmespath_error_category if JMESPath evaluation fails.

Parameters

expr JMESPath expression
ec out-parameter for reporting errors in the non-throwing overload

Exceptions

(1) Throws a jmespath_error if JMESPath compilation fails.

(2) Sets the out-parameter ec to the jmespath_error_category if JMESPath compilation fails.