https://github.com/jurgen-kluft/cjson
C++ JSON parser and decoder/encoder (can deserialize JSON into structs and back to JSON)
https://github.com/jurgen-kluft/cjson
cpp custom json linear-allocator no-dependencies utf-8
Last synced: 14 days ago
JSON representation
C++ JSON parser and decoder/encoder (can deserialize JSON into structs and back to JSON)
- Host: GitHub
- URL: https://github.com/jurgen-kluft/cjson
- Owner: jurgen-kluft
- Created: 2022-02-26T13:48:12.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2025-12-15T09:59:21.000Z (about 2 months ago)
- Last Synced: 2025-12-17T18:27:03.735Z (about 2 months ago)
- Topics: cpp, custom, json, linear-allocator, no-dependencies, utf-8
- Language: C++
- Homepage:
- Size: 217 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# json parser
A JSON parser as well as a JSON decoder that can read directly into C structures using JSON type declarations.
These declarations can then also be used again to write JSON, see [test_json_decode.cpp](https://github.com/jurgen-kluft/cjson/blob/main/source/test/cpp/test_json_decode.cpp) for an example.
- UTF-8
- Lexer
- Parser
- Decoder (reading JSON)
- Encoder (writing JSON)
Uses a simple forward/linear allocator.
## Dependencies
- cbase (types & allocator)