Skip to content

Commit

Permalink
Merge pull request #454 from MonkeybreadSoftware/patch-7
Browse files Browse the repository at this point in the history
Update jsonpath_examples.cpp
  • Loading branch information
danielaparker authored Sep 25, 2023
2 parents f78e6d5 + e366966 commit e46e024
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/src/jsonpath_examples.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ void json_query_examples()
std::cout << "(9)\n" << pretty_print(result9) << "\n";

// Intersection of book titles with category fiction and price < 15
json result10 = jsonpath::json_query(booklist, "$.store.book[?(@.category == 'fiction')][?(@.price < 15)].title");
json result10 = jsonpath::json_query(booklist, "$.store.book[?(@.category == 'fiction' && @.price < 15)].title"));
std::cout << "(10)\n" << pretty_print(result10) << "\n";

// Normalized path expressions
Expand Down

0 comments on commit e46e024

Please sign in to comment.