Function compile_json
Source pub fn compile_json(
spec: &str,
facts: &str,
fonts: &[Arc<[u8]>],
) -> Result<String, ComposeError>
Expand description
compile across a JSON boundary: the spec and facts as JSON text, the
result as JSON text ({project, assets, loudness, warnings}).
§Errors
Returns where in the spec or facts, and why, they do not parse or the
spec does not compile.
§Panics
Never: a compiled project always serializes.