diff --git a/src/lib.rs b/src/lib.rs index 1120788..b42d4fb 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -299,7 +299,7 @@ pub fn selector_as( /// &json!({"name": "친구1", "age": 20}) /// ]); /// ``` -pub fn select<'a>(json: &'a Value, path: &'a str) -> Result, JsonPathError> { +pub fn select<'a>(json: &'a Value, path: &str) -> Result, JsonPathError> { Selector::default().str_path(path)?.value(json).select() }