diff --git a/docs/api.md b/docs/api.md index f182ee58c7c..129eca092b8 100644 --- a/docs/api.md +++ b/docs/api.md @@ -1686,7 +1686,7 @@ Returns a JSON representation of the object. If the object has a [`toJSON`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/JSON/stringify#toJSON()_behavior) function, it **will not be called**. -> **NOTE** The method will throw if the referenced object is not stringifiable. +> **NOTE** The method will return an empty JSON if the referenced object is not stringifiable. It will throw an error if the object has circular references. ### class: ElementHandle