pub fn parse_json(input: &str) -> Result<Diagram, ParseError>
Parses a JSON string into a validated Diagram.
Diagram