decode_stele

Function decode_stele 

Source
pub fn decode_stele(
    stele_input: &str,
    pretty: bool,
) -> Result<String, SchemaError>
Expand description

Decode stele format to JSON: stele → IR → JSON

Reverses the stele encoding to reconstruct JSON from the model-readable format.

§Example

use base_d::decode_stele;

let stele = "@users┃id:int┃name:str\n◉1┃alice";
let json = decode_stele(stele, false)?;
// {"users":[{"id":1,"name":"alice"}]}