Module to_json

Source
Expand description

Module for converting Variant data to JSON format

Constantsยง

DATE_FORMAT ๐Ÿ”’
TIMESTAMP_NTZ_FORMAT ๐Ÿ”’

Functionsยง

convert_array_to_json ๐Ÿ”’
Convert array elements to JSON
convert_object_to_json ๐Ÿ”’
Convert object fields to JSON
format_binary_base64 ๐Ÿ”’
format_date_string ๐Ÿ”’
format_timestamp_ntz_string ๐Ÿ”’
variant_to_json
This function writes JSON directly to any type that implements Write, making it efficient for streaming or when you want to control the output destination.
variant_to_json_string
Convert [Variant] to JSON String
variant_to_json_value
Convert [Variant] to serde_json::Value