toJSON

open fun toJSON(): JsAny(source)

The toJSON() method is a Serialization; it returns a JSON representation of the PerformanceEntry object.

MDN Reference