Closed mr-adult closed 5 months ago
I'm getting an out of bounds panic when the JSON contains a multi-line string (or one that doesn't escape its \n characters correctly).
#[test] fn multi_line_string() { let str = "\"this is a string\nthat spans multiple lines\n\nend\""; println!("{}", super::format(str, None).0); println!("{}", super::parse(str).0.to_string_pretty()); }
Fixed in commit a2e78fe71e9c2ea3176f50eea85e590e91cdabde
I'm getting an out of bounds panic when the JSON contains a multi-line string (or one that doesn't escape its \n characters correctly).