decode_fiche

Function decode_fiche 

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

Decode fiche format to JSON: fiche → IR → JSON

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

§Example

use base_d::decode_fiche;

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