| ... | @@ -120,7 +120,7 @@ pub const Member = struct { | ... | @@ -120,7 +120,7 @@ pub const Member = struct { |
| 120 | }; | 120 | }; |
| 121 | | 121 | |
| 122 | const Parser = struct { | 122 | const Parser = struct { |
| 123 | alloc: *std.mem.Allocator, | 123 | alloc: std.mem.Allocator, |
| 124 | p: std.json.StreamingParser, | 124 | p: std.json.StreamingParser, |
| 125 | input: []const u8, | 125 | input: []const u8, |
| 126 | index: usize, | 126 | index: usize, |
| ... | @@ -157,7 +157,7 @@ const Parser = struct { | ... | @@ -157,7 +157,7 @@ const Parser = struct { |
| 157 | error{ JsonExpectedObjKey, JsonExpectedValueStartGotEnd }; | 157 | error{ JsonExpectedObjKey, JsonExpectedValueStartGotEnd }; |
| 158 | }; | 158 | }; |
| 159 | | 159 | |
| 160 | pub fn parse(alloc: *std.mem.Allocator, input: []const u8) Parser.Error!Value { | 160 | pub fn parse(alloc: std.mem.Allocator, input: []const u8) Parser.Error!Value { |
| 161 | const p = &Parser{ | 161 | const p = &Parser{ |
| 162 | .alloc = alloc, | 162 | .alloc = alloc, |
| 163 | .p = std.json.StreamingParser.init(), | 163 | .p = std.json.StreamingParser.init(), |