Experimental: This is an experimental technology
Check the Browser compatibility table carefully before using this in production.
The toJSON() method of the LayoutShiftAttribution interface is a serializer that returns a JSON representation of the LayoutShiftAttribution object.