Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ziglibs/tres
ValueTree-based JSON parser
https://github.com/ziglibs/tres
json zig zig-package ziglang
Last synced: 2 months ago
JSON representation
ValueTree-based JSON parser
- Host: GitHub
- URL: https://github.com/ziglibs/tres
- Owner: ziglibs
- License: mit
- Archived: true
- Created: 2022-01-01T21:51:09.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2024-02-08T03:40:33.000Z (10 months ago)
- Last Synced: 2024-09-26T17:40:15.689Z (3 months ago)
- Topics: json, zig, zig-package, ziglang
- Language: Zig
- Homepage:
- Size: 102 KB
- Stars: 39
- Watchers: 3
- Forks: 4
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-zig - ziglibs/tres - based JSON parser. (File format processing / Utility)
- awesome-zig - tres🗒️ValueTree-based JSON parser
README
# tres
`std.json.parse` but on `ValueTree`s. Stringify that supports Undefinedables, ArrayLists, and HashMaps.
## Features
- `parse` (std.json.Value -> T)
- `stringify` (T -> []const u8)
- `toValue` (T -> std.json.Value)All the above modes support `std.json` standard features as well as:
- Enhanced optionals (`tres_null_meaning`, see test "parse and stringify null meaning")
- String enums (`tres_string_enum`, see test "json.stringify enums")
- Field name remapping (`tres_remap`, see test "remapping")
- Map and ArrayList support (unmanaged too!)## License
MIT