PerformanceServerTiming.toJSON

The toJSON() method of the PerformanceServerTiming interface returns a DOMString that is the JSON representation of the PerformanceServerTiming object.

Syntax

var json = PerformanceServerTiming.toJSON()

Parameters

None.

Return value

A DomString containing JSON.

Exceptions

None.

Specifications

Specification Status Comment
Server Timing
The definition of 'toJSON' in that specification.
Working Draft Initial definition.

Browser compatibility

DesktopMobile
ChromeEdgeFirefoxInternet ExplorerOperaSafariAndroid webviewChrome for AndroidFirefox for AndroidOpera for AndroidSafari on iOSSamsung Internet
toJSON
Experimental
Chrome Full support 65Edge Full support ≤79Firefox Full support 61IE No support NoOpera Full support 52Safari ? WebView Android Full support 65Chrome Android Full support 65Firefox Android Full support 61Opera Android Full support 47Safari iOS ? Samsung Internet Android Full support 9.0

Legend

Full support
Full support
No support
No support
Compatibility unknown
Compatibility unknown
Experimental. Expect behavior to change in the future.
Experimental. Expect behavior to change in the future.