Skip to main content

vexy_json_serde/
lib.rs

1use serde::{Deserialize, Serialize};
2use vexy_json_core::ast::Value;
3
4// This is a placeholder for Serde integration.
5// Actual implementation would involve implementing Serialize/Deserialize for vexy_json_core::Value
6// or providing helper functions for conversion.
7
8#[derive(Debug, PartialEq, Serialize, Deserialize)]
9pub struct SerdeValue(Value);
10
11impl From<Value> for SerdeValue {
12    fn from(value: Value) -> Self {
13        SerdeValue(value)
14    }
15}
16
17impl From<SerdeValue> for Value {
18    fn from(serde_value: SerdeValue) -> Self {
19        serde_value.0
20    }
21}