minimal/
minimal.rs

1use qt_json::QJSONDocument;
2
3fn main() {
4    let json_data = b"qbjs\
5    \x01\x00\x00\x00\
6    \x10\x00\x00\x00\
7    \x02\x00\x00\x00\
8    \x0C\x00\x00\x00\
9    \x4A\x01\x00\x00";
10
11    let document = QJSONDocument::from_binary(json_data.to_vec()).unwrap();
12
13    // Prints an Array with 10 as value
14    println!("{:?}", document.base);
15}