web api instance method
PerformanceTiming: toJSON() method
[!WARNING] This interface of this property is deprecated in the Navigation Timing Level 2 specification. Please use the
PerformanceNavigationTiminginterface instead.
The legacy toJSON() method of the PerformanceTiming interface is a serializer; it returns a JSON representation of the PerformanceTiming object.
Syntax
toJSON()
Parameters
None.
Return value
A JSON object that is the serialization of the PerformanceTiming object.
Specifications
SpecificationsStandards references are available on the canonical MDN page.
Browser compatibility
Browser compatibilityCompatibility data is available on the canonical MDN page.