https://github.com/frozencemetery/cdson
C library for the DSON data serialization format, for humans
https://github.com/frozencemetery/cdson
c dson parser serialization serializer
Last synced: 12 months ago
JSON representation
C library for the DSON data serialization format, for humans
- Host: GitHub
- URL: https://github.com/frozencemetery/cdson
- Owner: frozencemetery
- License: mpl-2.0
- Created: 2021-10-26T23:41:12.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2023-06-15T22:52:28.000Z (about 3 years ago)
- Last Synced: 2025-02-03T11:14:33.630Z (over 1 year ago)
- Topics: c, dson, parser, serialization, serializer
- Language: C
- Homepage:
- Size: 145 KB
- Stars: 1
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
# cdson
A pure C parsing and serialization library for the [DSON](https://dogeon.xyz/)
data serialization format, for humans. cdson is believed to have complete
spec coverage, though as with any project, there may still be bugs.
## Installation
If you're running Fedora, RHEL with EPEL enabled, or a rebuild thereof,
rejoice: cdson is available in your distro:
```shell
dnf install libcdson-devel
```
Otherwise, keep reading for instructions to build from source.
## Building from source and testing
```shell
mkdir build
cd build
meson ..
ninja
meson test # optional
sudo meson install
```
## Usage
```C
#include
```
and build with however your buildsystem integrates pkg-config output as usual.
Further documentation is inline in
[cdson.h](https://github.com/frozencemetery/cdson/blob/main/cdson.h).
## Contributing
PRs welcome! Test suite must pass, and more tests are welcome too.
## Dogs
If you are in the US, and have capacity and desire to care for an animal
friend, the ASPCA has a searchable database of adoptable
[dogs](https://www.aspca.org/adopt-pet/adoptable-dogs-your-local-shelter) (and
[cats](https://www.aspca.org/adopt-pet/adoptable-cats-your-local-shelter)) in
your area.