| ... | ... | @@ -198,7 +198,7 @@ pub fn WriteStream(comptime OutStream: type, comptime max_depth: usize) type { |
| 198 | 198 | } |
| 199 | 199 | |
| 200 | 200 | /// Writes the complete json into the output stream |
| 201 | | pub fn writeJson(self: *Self, json: std.json.Value) std.os.WriteError!void { |
| 201 | pub fn emitJson(self: *Self, json: std.json.Value) Stream.Error!void { |
| 202 | 202 | switch (json) { |
| 203 | 203 | .Null => try self.emitNull(), |
| 204 | 204 | .Bool => |inner| try self.emitBool(inner), |
| ... | ... | @@ -209,7 +209,7 @@ pub fn WriteStream(comptime OutStream: type, comptime max_depth: usize) type { |
| 209 | 209 | try self.beginArray(); |
| 210 | 210 | for (inner.toSliceConst()) |elem| { |
| 211 | 211 | try self.arrayElem(); |
| 212 | | try self.writeJson(elem); |
| 212 | try self.emitJson(elem); |
| 213 | 213 | } |
| 214 | 214 | try self.endArray(); |
| 215 | 215 | }, |
| ... | ... | @@ -218,7 +218,7 @@ pub fn WriteStream(comptime OutStream: type, comptime max_depth: usize) type { |
| 218 | 218 | var it = inner.iterator(); |
| 219 | 219 | while (it.next()) |entry| { |
| 220 | 220 | try self.objectField(entry.key); |
| 221 | | try self.writeJson(entry.value); |
| 221 | try self.emitJson(entry.value); |
| 222 | 222 | } |
| 223 | 223 | try self.endObject(); |
| 224 | 224 | }, |