use std::collections::HashMap;
use super::{impl_primitives, impl_shadow, PY};
#[derive(PY)]
#[py(
crate = "crate",
rename = "JsonValue",
untagged,
export_to = "serde_json/"
)]
pub enum TsJsonValue {
Number(i32),
String(String),
Boolean(bool),
Array(Vec<TsJsonValue>),
Object(HashMap<String, TsJsonValue>),
Null(()),
}
impl_shadow!(as TsJsonValue: impl PY for serde_json::Value);
impl_primitives!(serde_json::Number => "number");
impl_shadow!(as HashMap<K, V>: impl<K: PY, V: PY> PY for serde_json::Map<K, V>);