///|
fn main {
  let input = "{\"type\":\"https://example.com/problems/out-of-credit\",\"title\":\"Out of credit\",\"status\":403,\"balance\":30}"
  match @problem.parse_problem_json(input) {
    Ok(result) => {
      println(@problem.serialize_problem(result.problem()))
      println("diagnostics: \{result.diagnostics().length()}")
    }
    Err(error) => println(error.to_string())
  }
}