mirror of
https://github.com/fluencelabs/jsonpath
synced 2025-07-31 07:12:05 +00:00
escaped quote notation
This commit is contained in:
@@ -356,4 +356,12 @@ fn empty_range() {
|
||||
setup();
|
||||
|
||||
select_and_then_compare("$[:]", json!(["first", "second"]), json!(["first", "second"]));
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn quote() {
|
||||
setup();
|
||||
|
||||
select_and_then_compare(r#"$['single\'quote']"#, json!({"single'quote":"value"}), json!(["value"]));
|
||||
select_and_then_compare(r#"$["double\"quote"]"#, json!({"double\"quote":"value"}), json!(["value"]));
|
||||
}
|
Reference in New Issue
Block a user