2022-07-05 13:41:43 +00:00
|
|
|
---
|
|
|
|
sidebar_label: JSHandle.jsonValue
|
|
|
|
---
|
|
|
|
|
|
|
|
# JSHandle.jsonValue() method
|
|
|
|
|
2023-03-30 11:54:00 +00:00
|
|
|
A vanilla object representing the serializable portions of the referenced object.
|
|
|
|
|
2022-10-24 07:07:05 +00:00
|
|
|
#### Signature:
|
2022-07-05 13:41:43 +00:00
|
|
|
|
|
|
|
```typescript
|
|
|
|
class JSHandle {
|
2022-08-11 09:45:35 +00:00
|
|
|
jsonValue(): Promise<T>;
|
2022-07-05 13:41:43 +00:00
|
|
|
}
|
|
|
|
```
|
|
|
|
|
|
|
|
**Returns:**
|
|
|
|
|
|
|
|
Promise<T>
|
|
|
|
|
2022-08-11 09:45:35 +00:00
|
|
|
## Exceptions
|
|
|
|
|
|
|
|
Throws if the object cannot be serialized due to circularity.
|
2022-07-05 13:41:43 +00:00
|
|
|
|
|
|
|
## Remarks
|
|
|
|
|
2022-08-12 12:15:26 +00:00
|
|
|
If the object has a `toJSON` function, it **will not** be called.
|