json_to_variant

Function json_to_variant 

Source
pub fn json_to_variant(input: &ArrayRef) -> Result<VariantArray, ArrowError>
Expand description

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.

Supports the following string array types:

  • [StringArray]
  • [LargeStringArray]
  • [StringViewArray]