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