Skip to main content

Module from_json

Module from_json 

Source
Expand description

Module for transforming a batch of JSON strings into a batch of Variants represented as STRUCT<metadata: BINARY, value: BINARY>

Re-exportsยง

use crate::VariantArray; ๐Ÿ”’
use crate::VariantArrayBuilder; ๐Ÿ”’
use arrow::array::Array; ๐Ÿ”’
use arrow::array::ArrayRef; ๐Ÿ”’
use arrow::array::LargeStringArray; ๐Ÿ”’
use arrow::array::StringArray; ๐Ÿ”’
use arrow::array::StringViewArray; ๐Ÿ”’
use arrow_schema::ArrowError; ๐Ÿ”’
use parquet_variant_json::JsonToVariant; ๐Ÿ”’

Macrosยง

string_array_to_variant ๐Ÿ”’
Macro to convert string array to variant array

Functionsยง

json_to_variant
Parse a batch of JSON strings into a batch of Variants represented as STRUCT<metadata: BINARY, value: BINARY> where nulls are preserved. The JSON strings in the input must be valid.