2022-07-05 13:41:43 +00:00
|
|
|
---
|
|
|
|
sidebar_label: JSHandle.jsonValue
|
|
|
|
---
|
|
|
|
|
|
|
|
# JSHandle.jsonValue() method
|
|
|
|
|
|
|
|
**Signature:**
|
|
|
|
|
|
|
|
```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
|
|
|
A vanilla object representing the serializable portions of the referenced object.
|
|
|
|
|
|
|
|
## 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.
|