jsonbuilder 0.1.0

A json builder used to create JSON structures using a simple DSL
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
use serde_json::Value;

use crate::{context::Context, error::*, parser::Block as BlockAST};

use super::statement;

pub fn run(block: BlockAST, context: &Context, value: &mut Value) -> Result<()> {
    for statement in block.0 {
        statement::run(statement, context, value)?;
    }

    Ok(())
}