| 781 | }; |
| 782 | |
| 783 | void custom_functions1() |
| 784 | { |
| 785 | my_custom_functions<jsoncons::json> funcs; |
| 786 | |
| 787 | jsoncons::json root = jsoncons::json::parse(R"([{"foo": 60, "bar": 10},{"foo": 60, "bar": 5}])"); |
| 788 | std::cout << pretty_print(root) << "\n\n"; |
| 789 | |
| 790 | auto expr = jsonpath::make_expression<jsoncons::json>("$[?(divide(@.foo, @.bar) == 6)]", funcs); |
| 791 | jsoncons::json result = expr.evaluate(root); |
| 792 | |
| 793 | std::cout << pretty_print(result) << "\n\n"; |
| 794 | } |
| 795 | |
| 796 | void custom_functions2() |
| 797 | { |
no test coverage detected