The toJSON()
method of the PerformanceServerTiming
interface returns a string that is the JSON representation of the PerformanceServerTiming
object.
PerformanceServerTiming.toJSON()
Syntax
toJSON()
Parameters
None.
Return value
A DomString
containing JSON.
Exceptions
None.
Specifications
Specification |
---|
Server Timing # dom-performanceservertiming-tojson |
Browser compatibility
Desktop | Mobile | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
Chrome | Edge | Firefox | Internet Explorer | Opera | Safari | WebView Android | Chrome Android | Firefox for Android | Opera Android | Safari on IOS | Samsung Internet | |
toJSON |
65
|
79
|
61
|
No
|
52
|
No
|
65
|
65
|
61
|
47
|
No
|
9.0
|
© 2005–2021 MDN contributors.
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.
https://developer.mozilla.org/en-US/docs/Web/API/PerformanceServerTiming/toJSON