| 794 | } |
| 795 | |
| 796 | void custom_functions2() |
| 797 | { |
| 798 | my_custom_functions<jsoncons::json> funcs; |
| 799 | |
| 800 | auto root = jsoncons::json::parse(R"([{"foo": 60, "bar": 10},{"foo": 60, "bar": 5}])"); |
| 801 | std::cout << pretty_print(root) << "\n\n"; |
| 802 | |
| 803 | jsoncons::json result = jsonpath::json_query(root, "$[?(divide(@.foo, @.bar) == 6)]", jsonpath::result_options(), funcs); |
| 804 | |
| 805 | std::cout << pretty_print(result) << "\n\n"; |
| 806 | } |
| 807 | |
| 808 | void make_expression_with_stateful_allocator() |
| 809 | { |
no test coverage detected