11 releases (4 stable)

Uses new Rust 2024

1.3.0 May 19, 2025
1.2.0 May 7, 2025
1.0.1 Feb 10, 2025
1.0.0 Jan 4, 2025
0.1.5 Aug 26, 2024

#986 in Parser implementations

Download history 5/week @ 2025-02-03 112/week @ 2025-02-10 24/week @ 2025-02-17 1/week @ 2025-02-24 1/week @ 2025-03-03 2/week @ 2025-03-17 4/week @ 2025-03-24 1/week @ 2025-03-31 115/week @ 2025-05-05 55/week @ 2025-05-12 115/week @ 2025-05-19

285 downloads per month
Used in http-srv

GPL-3.0-only

43KB
1K SLoC

Json parser

Example

use json::Json;

let j = Json::deserialize(r#"{
    "array" : [ 1, 2, "3", null ],
    "true" : true,
    "nested" : {
        "inner" : []
    }
}"#).unwrap();

let Json::Object(map) = j else { panic!() };
assert!(
    matches!(
        map.get("true"),
        Some(Json::True)));

Json parser

This is a rust library to work with json.

== Documentation == To read the library documentation run cargo doc or browse the online docs at https://docs.rs/jsonrs

==== Copyright (C) 2025 Saúl Valdelvira

This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, version 3.

No runtime deps

~0–0.9MB