fixed-json 0.4.0

No-std, no-allocation JSON parsing into caller-owned fixed storage
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
extern crate std;

use self::std::string::ToString;
use fixed_json::{Error, error_string};

#[test]
fn error_helpers_return_human_readable_messages() {
    assert_eq!(
        Error::BadNum.message(),
        "error while parsing a numerical argument"
    );
    assert_eq!(
        error_string(Error::NoCurly),
        "object element specified, but no {"
    );
    assert_eq!(Error::BadAttr.to_string(), "unknown attribute name");
}