User avatar
Kett‮ @kett@app.wafrn.net
1w
just realized the zig standard library has a type-aware json deserializer 🥺 what the hell 🥺🥺
1
0
1
0
User avatar
Kett‮ @kett@app.wafrn.net
1w
ok deserializing json was pretty straightforward i can just std.json.parseFromSlice but now how do i serialize how do i take some value of type T and turn it into json… i see a type named Stringify and ohh there's a bunch of tests in there that show usage that's freakin awesome
1
0
1
0
User avatar
Kett‮ @kett@app.wafrn.net
1w
this is not too bad, it's not serde level simple but it's completely usable, and built-in!
2
0
1
0
User avatar
pancakes nonbinary_cat @pancakes@meow.company
1w
@kett zig standard library is my favorite it's so awesome
0
0
1
0