Add json decoder

- streaming json decoder
 - dynamic tree/value decoder
This commit is contained in:
Marc Tiehuis 2018-05-02 18:04:40 +12:00
parent 33fa87a9d8
commit 0afc6a9886
4 changed files with 3253 additions and 0 deletions

View File

@ -454,6 +454,7 @@ set(ZIG_STD_FILES
"heap.zig"
"index.zig"
"io.zig"
"json.zig"
"linked_list.zig"
"macho.zig"
"math/acos.zig"

View File

@ -23,6 +23,7 @@ pub const fmt = @import("fmt/index.zig");
pub const hash = @import("hash/index.zig");
pub const heap = @import("heap.zig");
pub const io = @import("io.zig");
pub const json = @import("json.zig");
pub const macho = @import("macho.zig");
pub const math = @import("math/index.zig");
pub const mem = @import("mem.zig");
@ -56,6 +57,7 @@ test "std" {
_ = @import("fmt/index.zig");
_ = @import("hash/index.zig");
_ = @import("io.zig");
_ = @import("json.zig");
_ = @import("macho.zig");
_ = @import("math/index.zig");
_ = @import("mem.zig");

1308
std/json.zig Normal file

File diff suppressed because it is too large Load Diff

1942
std/json_test.zig Normal file

File diff suppressed because one or more lines are too long