Experimental: This is an experimental technology
Check the Browser compatibility table carefully before using this in production.
The toJSON() method of Temporal.PlainYearMonth instances returns a string representing this year-month in the same RFC 9557 format as calling toString(). It is intended to be implicitly called by JSON.stringify().