https://github.com/caoimhebyrne/jsonp
A simple JSON parser written in Rust
https://github.com/caoimhebyrne/jsonp
json json-parser rust
Last synced: 15 days ago
JSON representation
A simple JSON parser written in Rust
- Host: GitHub
- URL: https://github.com/caoimhebyrne/jsonp
- Owner: caoimhebyrne
- License: mit
- Created: 2023-07-15T14:24:21.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2023-07-22T16:48:50.000Z (almost 2 years ago)
- Last Synced: 2025-03-26T00:36:01.748Z (about 1 month ago)
- Topics: json, json-parser, rust
- Language: Rust
- Homepage:
- Size: 27.3 KB
- Stars: 5
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# `jsonp`
A simple JSON parser written in Rust.
I'm designing this to pretty print some JSON files, but in the future, I'd like to be able to make a more usable alternative to `jq`. (Let's be real, who can say that they're confident with using `jq`!?)
## Usage
```shell
$ cargo install -- path .
Installing jsonp v0.1.0
Finished release [optimized] target(s) in 0.00s
Installing ~/.cargo/bin/jsonp
Installed package `jsonp v0.1.0` (executable `jsonp`)$ jsonp ./examples/simple.json
Object(
{
"exponential": Number(23.59),
"abc": Number(123.0),
"hello": String("world"),
"test": Object(
{
"value": Null,
"boolean": Boolean(true),
"array": Array(
[
Number(1.0),
Number(2.0),
Number(3.0),
],
),
"another_boolean": Boolean(false),
},
),
"decimal": Number(123.55435),
},
)
```## License
This project is licensed under the [MIT license](https://choosealicense.com/licenses/mit).