toJSON

The toJSON() method of the Performance interface is a serializer; it returns a JSON representation of the Performance object.

MDN Reference