This commit is contained in:
Joseph Olabisi
2025-04-01 09:31:43 +01:00
parent 2013a46518
commit d32cd20ce6
2 changed files with 5 additions and 5 deletions
+2 -2
View File
@@ -49,10 +49,10 @@ int main(void) {
// auto result = parsed_json.at_path_new("$.address.*");
// selects all address properties - $["address"].*
// auto result = parsed_json.at_path_new("$["address"].*");
auto result = parsed_json.at_path_new("$['address'].*");
// selects nested properties - $.*.streetAddress
auto result = parsed_json.at_path_new("$.*.streetAddress");
// auto result = parsed_json.at_path_new("$.*.streetAddress");
std::vector<simdjson::dom::element> values = result.value();