zigzap / zap

blazingly fast backends in zig
MIT License
1.99k stars 71 forks source link

update endpoint example to the new json api #17

Closed edyu closed 1 year ago

edyu commented 1 year ago

zig 0.11.0-dev.3203+7cf2cbb33 has updated the json api. I've updated to use the new parseFromSlice call which basically does the init and deinit of the json.Scanner so we don't have to do it as we had to for json.TokenStream.

renerocksai commented 1 year ago

Cool, thx! The tests passed - so should be safe to merge.