Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ziglibs/eggzon
π₯Zon - A DOM based Zig Object Notation parser
https://github.com/ziglibs/eggzon
Last synced: about 2 months ago
JSON representation
π₯Zon - A DOM based Zig Object Notation parser
- Host: GitHub
- URL: https://github.com/ziglibs/eggzon
- Owner: ziglibs
- Created: 2023-08-02T11:17:09.000Z (about 1 year ago)
- Default Branch: master
- Last Pushed: 2023-12-22T08:42:33.000Z (9 months ago)
- Last Synced: 2024-06-12T08:55:12.679Z (3 months ago)
- Language: Zig
- Size: 14.6 KB
- Stars: 20
- Watchers: 3
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
Awesome Lists containing this project
README
# π₯-Zon
```zig
var doc = try parseString(std.testing.allocator,
\\.{
\\ .name = "egg-zon",
\\ .version = "0.1.0",
\\
\\ .dependencies = .{
\\ .@"parser-toolkit" = .{
\\ .url = "https://github.com/MasterQ32/parser-toolkit/archive/6238b7c6893582fb56f39676a090b1af1226fe1a.tar.gz",
\\ .hash = "1220cf55c10add71a9cd2591dbe118ffa9a9198e21069e440fae1f6e3eef6f274733",
\\ },
\\ },
\\}
);
defer doc.deinit();const name = doc.root.object.get("name").?.string;
```