Skip to content

0.8.1

Compare
Choose a tag to compare
@maciejhirsz maciejhirsz released this 30 Jun 22:02
· 179 commits to master since this release

This release increases the performance of both parsing and serialization.

There are also some minor fixes to how UTF8 is handled, particularly unexpected unicode characters are now properly reported:

#[test]
fn error_unexpected_unicode_character() {
    let err = parse("\n\nnul🦄\n").unwrap_err();

    assert_eq!(err, JsonError::UnexpectedCharacter {
        ch: '🦄',
        line: 3,
        column: 4,
    });

    assert_eq!(format!("{}", err), "Unexpected character: 🦄 at (3:4)");
}