Docs.rs
  • qt-json-rs-1.0.1
    • qt-json-rs 1.0.1
    • Permalink
    • Docs.rs crate page
    • Links
    • Homepage
    • Repository
    • crates.io
    • Source
    • Owners
    • TheDome
    • Dependencies
      • byteorder ^1.4.3 normal
      • env_logger ^0.9.0 normal
      • log ^0.4.14 normal
      • num ^0.4 normal
      • num-derive ^0.3 normal
      • num-traits ^0.2 normal
    • Versions
    • 81.48% of the crate is documented
  • Platform
    • i686-pc-windows-msvc
    • i686-unknown-linux-gnu
    • x86_64-apple-darwin
    • x86_64-pc-windows-msvc
    • x86_64-unknown-linux-gnu
  • Feature flags
  • docs.rs
    • About docs.rs
    • Privacy policy
  • Rust
    • Rust website
    • The Book
    • Standard Library API Reference
    • Rust by Example
    • The Cargo Guide
    • Clippy Documentation

Crate qt_json_rs

qt_json_rs1.0.1

  • All Items

Sections

  • Use
  • Disclaimer

Crate Items

  • Modules
  • Structs
  • Type Aliases

Crates

  • qt_json_rs

Crate qt_json_rs

Source
Expand description

codecov

A simple parser for the Internal Qt Binary JSON data format.

This parser will transform the popular QTBinary JSON format into usable format for rust applications.

§Use

Simply provide a binary encoded JSON Array to the function and it will parse it into an internal JSON structure:

use qt_json_rs::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();

    println!("{:?}", document);
}

§Disclaimer

This library has been created by looking at the Qt source code and performing reverse engineering. There is a possibility that the code will not work with other Version of Qt JSON documents. Any help with this library is welcome.

Modules§

elements

Structs§

QJSONDocument
A QJSONDocument is the root of every parsed JSOn Document. It consists out of metadata and a base

Type Aliases§

Endianess

Results

Settings
Help

Query parser error: "Unexpected - (did you mean ->?)".