flatten-json-object 0.6.1

Tiny Rust library for flattening JSON objects
Documentation
1
2
3
4
5
6
7
8
9
10
11
use thiserror::Error;

/// Errors that can happen while using this crate.
#[derive(Error, Debug)]
pub enum Error {
    #[error("Only objects can be flattened")]
    FirstLevelMustBeAnObject,

    #[error("Flattening the object will overwrite the key '{0}'")]
    KeyWillBeOverwritten(String),
}