Method: Polars::StringExpr#json_path_match
- Defined in:
- lib/polars/string_expr.rb
#json_path_match(json_path) ⇒ Expr
Extract the first match of json string with provided JSONPath expression.
Throw errors if encounter invalid json strings. All return value will be casted to Utf8 regardless of the original value.
Documentation on JSONPath standard can be found here.
1001 1002 1003 1004 |
# File 'lib/polars/string_expr.rb', line 1001 def json_path_match(json_path) json_path = Utils.parse_into_expression(json_path, str_as_lit: true) Utils.wrap_expr(_rbexpr.str_json_path_match(json_path)) end |