Skip to main content

yaml_compile_to_json

Function yaml_compile_to_json 

Source
pub fn yaml_compile_to_json(text: &str) -> Option<Value>
Expand description

Compiles YAML text to one JSON value.

§Parameters

§Returns

Returns Some when crate::declarative::yaml_compile_to_json can produce a value and None otherwise.

§Examples

ⓘ
let _result = pharos_runtime_compiler::declarative::yaml_compile_to_json("{}");