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