packages/exception/docs/api/serializer/functions/fromJson.md
[**@httpx/exception**](../../README.md) • **Docs**
---
[@httpx/exception](../../README.md) / [serializer](../README.md) / fromJson
# Function: fromJson()
> **fromJson**(`json`, `params`?): `Error` \| [`HttpException`](../../base/classes/HttpException.md) \| [`SerializerError`](../classes/SerializerError.md)
## Parameters
• **json**: `string`
• **params?**: `SerializerParams`
## Returns
`Error` \| [`HttpException`](../../base/classes/HttpException.md) \| [`SerializerError`](../classes/SerializerError.md)