Crates.io | rjson |
lib.rs | rjson |
version | 0.3.1 |
source | src |
created_at | 2018-11-29 05:55:02.613546 |
updated_at | 2018-12-06 11:34:04.760355 |
description | A minimal json parser |
homepage | |
repository | https://github.com/yw662/rjson |
max_upload_size | |
id | 99169 |
size | 15,802 |
lib.rs
that do all the jobs.parse
.enum
for Value
, the same enum
for Null
, Vec
for Array
and BTreeMap
for Object
.core
and alloc
, nothing else, including std
.no_std
environment, it need a global allocator to work.,
after the last item/member of Array/Object.f64
for all numbers, but you can use others. Remind: f64
means i52
.&[char]
, not &[u8]
, and not &str
.stringify
or encode
, because they should not be a part of the traits.None
, we simply ignore chars after the data.index
. You can compare it with len() - 1
.Option::None
returned, by indicating where the syntax error occurs.parse
may return all possible values, not only Array
and Object
.