An open API service indexing awesome lists of open source software.

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)

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)