> This page is for SDKs, version Legacy.
> For other versions, use one of these documentation indexes:
> - Current (default): https://buildwithfern.com/learn/sdks/current/llms.txt
> - Legacy: https://buildwithfern.com/learn/sdks/legacy/llms.txt

> For clean Markdown content of this page, append .md to this URL. For the complete documentation index, see https://buildwithfern.com/learn/llms.txt.

## 2.2.2

**`(fix):`** Fix JSON deserialization error when API returns an empty response body for
endpoints with a declared JSON response type. Previously, a `JsonException:
Syntax error` was thrown because the SDK attempted to JSON-decode an empty
string. Now the generated code checks for an empty response body before
attempting deserialization and returns null gracefully.