https://github.com/marcos-venicius/cson
A very simple JSON reader in C
https://github.com/marcos-venicius/cson
c json json-reader lexer lib linked-list parser parsers syntax-tree
Last synced: 11 months ago
JSON representation
A very simple JSON reader in C
- Host: GitHub
- URL: https://github.com/marcos-venicius/cson
- Owner: marcos-venicius
- License: mit
- Created: 2024-11-17T17:11:06.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2025-01-01T16:59:54.000Z (about 1 year ago)
- Last Synced: 2025-01-24T12:45:36.941Z (about 1 year ago)
- Topics: c, json, json-reader, lexer, lib, linked-list, parser, parsers, syntax-tree
- Language: C
- Homepage:
- Size: 93.8 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Cson
_A very simple JSON reader for C_


**Better syntax error reporting**

## Implementing a new parser
The new parser, parses the json as a tree, making it easier to travel over the path specified by the user and prevent key conflicts.

## Testing
**We have some examples to you:**
basic one:
```bash
$ make basic
$ ./basic
```
testing the new parser:
```bash
$ make st
$ ./st
```
nested_objects one:
```bash
$ make nested_objects
$ ./nested_objects
```
nested_arrays one:
```bash
$ make nested_arrays
$ ./nested_arrays
```
nested_stuff one:
```bash
$ make nested_stuff
$ ./nested_stuff
```
## Next improvements
- Better error reporting at parser level
- Fix the formatter scaping strings
- Generate a libray from Cson
## Next steps
- Create a first unstable release
## Disclaimer
> [!NOTE]
> This is a working in progress. It's not ready yet for any kind of use.