Get to know MDN better
このページはコミュニティーの尽力で英語から翻訳されました。MDN Web Docs コミュニティーについてもっと知り、仲間になるにはこちらから。
Since December 2025, this feature works across the latest devices and browser versions. This feature might not work in older devices or browsers.
toJSON() は PerformanceEventTiming インターフェイスのメソッドで、シリアライザーです。これは PerformanceEventTiming オブジェクトの JSON 表現を返します。
なし。
PerformanceEventTiming オブジェクトをシリアライズした JSON オブジェクトです。
JSON は target プロパティを含みません。これは Node 型であり、 toJSON() 処理を提供していないからです。
この例では、entry.toJSON() を呼び出すと、 PerformanceEventTiming オブジェクトの JSON 表現が返されます。
このように JSON オブジェクトをログ出力します。
JSON 文字列を取得するには、 JSON.stringify(entry) を直接使用することができます。これは toJSON() を自動的に呼び出します。
| Event Timing API # dom-performanceeventtiming-tojson |
Enable JavaScript to view this browser compatibility table.
This page was last modified on 2024年3月20日 by MDN contributors.
Your blueprint for a better internet.
Visit Mozilla Corporation’s not-for-profit parent, the Mozilla Foundation.
Portions of this content are ©1998–2026 by individual mozilla.org contributors. Content available under a Creative Commons license.