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 result is {project, assets, loudness, warnings}.
§Errors
Returns where in the spec or facts, and why, they do not parse or compile, and refuses a
project longer than a project document may be at spec.
§Panics
Never; the parts besides the project always serialize.