Arwalk / zig-protobuf

a protobuf 3 implementation for zig.
MIT License
188 stars 20 forks source link

JSON (de)serialization #49

Open librolibro opened 2 weeks ago

librolibro commented 2 weeks ago

Closes #32

This one works without extra boilerplate code (some tests included) and I kinda like the solution, but still ...

To get things done I reimplemented a part of source code (see innerParse function in std/json/static.zig, the part with the .Struct case body). Since few internal non-public was needed i just copied it (eww).

Zig is on its early stages and standard library often changes - and that's why I partly don't like this PR because there might be lots or refactors (for example, standard token parser might change)

Feel free to judge it)

Arwalk commented 2 weeks ago

Thanks again for everything. I'll do my best to check it out ASAP.

Arwalk commented 5 days ago

Just saying that i haven't forgotten this, just trying to find some time to do it.