~ntgg/serdes-zig

cf6a979d — Noah Graff 5 years ago master
changed serialize functions from (type, T) to (var)
e40f5f7b — Noah Graff 5 years ago
added value -> text conversion

Currently is just `std.json.Value.dump`, but with `std.debug.warn`
replaced with `std.io.OutStream.print`. The names are real messy and
the args could do with improvements, but it is usable right now.

I also opened https://github.com/ziglang/zig/issues/3008, and if it is
accepted this will be moved to the standard library.
5fd122a5 — Noah Graff 5 years ago
stopped using anyerror
9fdffc85 — Noah Graff 5 years ago
added serialize for tagged union an enum
07f4c12b — Noah Graff 5 years ago
Switched from zig-json to serdes

This is a pretty big restructure, this now just provides a couple of
functions that deal with the serializing and deserializing most types.
It also uses the std.json.(Value/ValueTree) types instead of rolling
custom ones, for no real reason. Need to reimplement conversion of a
Value/ValueTree to a json string, but I need to think if that change
should be in the standard library.
eb7e6593 — Noah Graff 5 years ago
convert to text, except for array
1b2ce0d5 — Noah Graff 5 years ago
Fixed broken test, added array and string types.

The problem was invalidating the stack, so this no longer does that.
d024cf40 — Noah Graff 5 years ago
added new test, it currently fails
29f114e4 — Noah Graff 5 years ago
added struct to json
b8c7c98b — Noah Graff 5 years ago
initial commit