https://github.com/karnkaul/djson
Dumb simple JSON parsing library
https://github.com/karnkaul/djson
cpp cpp23 cpp23-library json jsonc
Last synced: 3 months ago
JSON representation
Dumb simple JSON parsing library
- Host: GitHub
- URL: https://github.com/karnkaul/djson
- Owner: karnkaul
- License: mit
- Created: 2020-08-18T02:56:36.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2025-10-04T02:46:36.000Z (3 months ago)
- Last Synced: 2025-10-04T02:49:24.856Z (3 months ago)
- Topics: cpp, cpp23, cpp23-library, json, jsonc
- Language: C++
- Homepage:
- Size: 174 KB
- Stars: 14
- Watchers: 2
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# djson v3.0
## Dumb and lightweight JSON parsing library.
[](https://github.com/karnkaul/djson/actions/workflows/ci.yml)
## Features
- JSONC parse mode
- Copiable `Json` objects
- Default construction (representing `null`) is "free"
- `as_string_view()`
- Heterogenous arrays
- Escaped text (`\\`, `\"`, `\b`, `\t`, `\n`)
- Implicit construction for nulls, booleans, numbers, strings
- Serialization, pretty-print (default)
- Customization points for `from_json` and `to_json`
- Build tree from scratch
### Limitations
- Escaped unicode (`\u1F604`) not currently supported
## Documentation
Documentation (with examples) is hosted [here](https://karnkaul.github.io/djson/).
## Contributing
Pull/merge requests are welcome.
**[Original repository](https://github.com/karnkaul/djson)**