toJSON
Returns a JSON string representing this year-month.
Parameters
- self:PlainYearMonth
- PlainYearMonth
- allocator:std.mem.Allocator
- std.mem.Allocator
Source
Implementation
pub fn toJSON(self: PlainYearMonth, allocator: std.mem.Allocator) ![]u8 {
return toString(self, allocator);
}