toJSON
Returns a string suitable for use as JSON.
Parameters
- self:PlainDate
- PlainDate
- allocator:std.mem.Allocator
- std.mem.Allocator
Source
Implementation
pub fn toJSON(self: PlainDate, allocator: std.mem.Allocator) ![]u8 {
return self.toString(allocator, .{});
}