Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

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

Awesome Lists containing this project

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