pub trait Utf8JsonPathImpl: AsString {
// Provided methods
fn json_path_match(
&self,
json_path: &ChunkedArray<StringType>,
) -> Result<ChunkedArray<StringType>, PolarsError> { ... }
fn json_infer(
&self,
number_of_rows: Option<usize>,
) -> Result<DataType, PolarsError> { ... }
fn json_decode(
&self,
dtype: Option<DataType>,
infer_schema_len: Option<usize>,
) -> Result<Series, PolarsError> { ... }
fn json_path_select(
&self,
json_path: &str,
) -> Result<ChunkedArray<StringType>, PolarsError> { ... }
fn json_path_extract(
&self,
json_path: &str,
dtype: Option<DataType>,
infer_schema_len: Option<usize>,
) -> Result<Series, PolarsError> { ... }
}
Provided Methods§
Sourcefn json_path_match(
&self,
json_path: &ChunkedArray<StringType>,
) -> Result<ChunkedArray<StringType>, PolarsError>
fn json_path_match( &self, json_path: &ChunkedArray<StringType>, ) -> Result<ChunkedArray<StringType>, PolarsError>
Extract json path, first match Refer to https://goessner.net/articles/JsonPath/
Sourcefn json_infer(
&self,
number_of_rows: Option<usize>,
) -> Result<DataType, PolarsError>
fn json_infer( &self, number_of_rows: Option<usize>, ) -> Result<DataType, PolarsError>
Returns the inferred DataType for JSON values for each row in the StringChunked, with an optional number of rows to inspect. When None is passed for the number of rows, all rows are inspected.
Sourcefn json_decode(
&self,
dtype: Option<DataType>,
infer_schema_len: Option<usize>,
) -> Result<Series, PolarsError>
fn json_decode( &self, dtype: Option<DataType>, infer_schema_len: Option<usize>, ) -> Result<Series, PolarsError>
Extracts a typed-JSON value for each row in the StringChunked