parquet_variant_json/lib.rs
1// Licensed to the Apache Software Foundation (ASF) under one
2// or more contributor license agreements. See the NOTICE file
3// distributed with this work for additional information
4// regarding copyright ownership. The ASF licenses this file
5// to you under the Apache License, Version 2.0 (the
6// "License"); you may not use this file except in compliance
7// with the License. You may obtain a copy of the License at
8//
9// http://www.apache.org/licenses/LICENSE-2.0
10//
11// Unless required by applicable law or agreed to in writing,
12// software distributed under the License is distributed on an
13// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14// KIND, either express or implied. See the License for the
15// specific language governing permissions and limitations
16// under the License.
17
18//! Conversion between [JSON] and the [Variant Binary Encoding] from [Apache Parquet].
19//!
20//! [JSON]: https://www.json.org/json-en.html
21//! [Variant Binary Encoding]: https://github.com/apache/parquet-format/blob/master/VariantEncoding.md
22//! [Apache Parquet]: https://parquet.apache.org/
23//!
24//! * See [`json_to_variant`] for converting a JSON string to a Variant.
25//! * See [`variant_to_json`] for converting a Variant to a JSON string.
26//!
27//! ## 🚧 Work In Progress
28//!
29//! This crate is under active development and is not yet ready for production use.
30//! If you are interested in helping, you can find more information on the GitHub [Variant issue]
31//!
32//! [Variant issue]: https://github.com/apache/arrow-rs/issues/6736
33
34mod from_json;
35mod to_json;
36
37pub use from_json::json_to_variant;
38pub use to_json::{variant_to_json, variant_to_json_string, variant_to_json_value};