qt-json 1.0.2

JSON library for QT
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use qt_json::QJSONDocument;

fn main() {
    let json_data = b"qbjs\
    \x01\x00\x00\x00\
    \x10\x00\x00\x00\
    \x02\x00\x00\x00\
    \x0C\x00\x00\x00\
    \x4A\x01\x00\x00";

    let document = QJSONDocument::from_binary(json_data.to_vec()).unwrap();

    // Prints an Array with 10 as value
    println!("{:?}", document.base);
}