mirror of
https://github.com/fluencelabs/jsonpath
synced 2025-05-07 15:02:14 +00:00
Update lib.rs
This commit is contained in:
parent
d9b9e9d8bd
commit
2efb019155
@ -299,7 +299,7 @@ pub fn selector_as<T: serde::de::DeserializeOwned>(
|
||||
/// &json!({"name": "친구1", "age": 20})
|
||||
/// ]);
|
||||
/// ```
|
||||
pub fn select<'a>(json: &'a Value, path: &'a str) -> Result<Vec<&'a Value>, JsonPathError> {
|
||||
pub fn select<'a>(json: &'a Value, path: &str) -> Result<Vec<&'a Value>, JsonPathError> {
|
||||
Selector::default().str_path(path)?.value(json).select()
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user