pub fn to_json_compact<T: Serialize>(problem: &T) -> Result<String>
Serialize a problem to a compact JSON string.