2022-08-16 11:58:16 +00:00
|
|
|
---
|
|
|
|
sidebar_label: JSHandle.jsonValue
|
|
|
|
---
|
|
|
|
|
|
|
|
# JSHandle.jsonValue() method
|
|
|
|
|
2023-04-03 08:23:08 +00:00
|
|
|
A vanilla object representing the serializable portions of the referenced object.
|
|
|
|
|
2022-10-24 14:31:12 +00:00
|
|
|
#### Signature:
|
2022-08-16 11:58:16 +00:00
|
|
|
|
|
|
|
```typescript
|
|
|
|
class JSHandle {
|
2023-08-28 13:34:38 +00:00
|
|
|
abstract jsonValue(): Promise<T>;
|
2022-08-16 11:58:16 +00:00
|
|
|
}
|
|
|
|
```
|
|
|
|
|
|
|
|
**Returns:**
|
|
|
|
|
|
|
|
Promise<T>
|
|
|
|
|
|
|
|
## Exceptions
|
|
|
|
|
|
|
|
Throws if the object cannot be serialized due to circularity.
|
|
|
|
|
|
|
|
## Remarks
|
|
|
|
|
|
|
|
If the object has a `toJSON` function, it **will not** be called.
|