https://developer.mozilla.org/en-US/docs/Web/API/LayoutShiftAttribution/toJSON
LayoutShiftAttribution: toJSON() method - Web APIs | MDN
The toJSON() method of the LayoutShiftAttribution interface is a serializer that returns a JSON representation of the LayoutShiftAttribution object.
web apistojsonmethodmdn