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 {
|
|
|
|
jsonValue(): Promise<T>;
|
|
|
|
}
|
|
|
|
```
|
|
|
|
|
|
|
|
**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.
|