Crates.io | jsondata-derive |
lib.rs | jsondata-derive |
version | 0.1.0 |
source | src |
created_at | 2021-03-13 06:36:40.598491 |
updated_at | 2021-03-13 06:36:40.598491 |
description | Macros for jsondata types |
homepage | |
repository | https://github.com/bnclabs/jsondata |
max_upload_size | |
id | 368194 |
size | 9,718 |
This crate makes several trade-offs that are tuned for big-data and document database.
Useful links
Converting JSON numbers to Rust native type is not always desired. Especially in the context of big-data where data is stored in JSON format and we need to lookup, only, specific fields within the document.
This implementation provides deferred conversion for JSON numbers that leads to a performance improvement of upto 30%.
Using Json Pointer it is possible to identify a specific field nested within a JSON document. For Example, with below document:
{
"age": 26,
"eyeColor": "green",
"name": "Leon Robertson",
"gender": "male",
"company": "AEORA",
"phone": "+1 (835) 447-2960",
"tags": [ "officia", "reprehenderit", "magna" ],
"friends": [
{
"id": 0,
"name": "Glenda Chan"
}
]
}
26
.[ "officia", "reprehenderit", "magna" ]
."officia"
.[{"id": 0, "name": "Glenda Chan"}]
."Glenda Chan"
.List of operations
Useful links
Detailed description can be found here.
make build
to confirm all versions of build is passing with
0 warnings and 0 errors.check.sh
with 0 warnings, 0 errors and all testcases passing.perf.sh
with 0 warnings, 0 errors and all testcases passing.cargo spellcheck
to remove common spelling mistakes.