Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/augustt198/json-rs
JSON parser in rust
https://github.com/augustt198/json-rs
Last synced: about 2 months ago
JSON representation
JSON parser in rust
- Host: GitHub
- URL: https://github.com/augustt198/json-rs
- Owner: augustt198
- Created: 2014-10-31T03:42:01.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2015-03-15T03:26:06.000Z (almost 10 years ago)
- Last Synced: 2023-08-02T15:35:23.851Z (over 1 year ago)
- Language: Rust
- Homepage:
- Size: 180 KB
- Stars: 4
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
json-rs
=======JSON parser made in rust.
## Usage
A `JsonValue` can be retreived with `JsonValue::from_string`:
```rust
let src = "{\"hello\":\"world\"}".to_string();
let json = JsonValue::from_string(src).unwrap();
````JsonValue` can be an object, array, boolean, null, string, integer, or float value depending on the input string.