pub fn encode_stele(json: &str, minify: bool) -> Result<String, SchemaError>Expand description
Encode JSON to stele format: JSON → IR → stele
Transforms JSON into a model-readable structured format using Unicode delimiters. Unlike carrier98 (opaque binary), stele is designed for models to parse directly.
§Format
@{root}┃{field}:{type}┃{field}:{type}...
◉{value}┃{value}┃{value}...§Example
ⓘ
use base_d::encode_stele;
let json = r#"{"users":[{"id":1,"name":"alice"}]}"#;
let stele = encode_stele(json)?;
// @users┃id:int┃name:str
// ◉1┃alice