---
title: "gleam_json 3.0.0 Breaking Changes on Hex | Since.dev"
description: "What each gleam_json release removed, renamed or changed: 10 breaking changes in 4 versions on Hex, each with its source."
canonical_url: https://since.dev/packages/hex/gleam_json
last_updated: 2026-12-04
---

# gleam_json breaking changes

gleam_json 3.0.0 (May 13, 2025) is its newest release with breaking changes, 3 of them. The first: Removed json.decode. Every breaking API change we have recorded in gleam_json on Hex: 10 breaking changes in 4 versions. Below, its 4 versions with breaking changes, newest first, removals and renames first, each with its source.

Updated December 4, 2026

Latest version `3.1.0`, released November 8, 2025. Apache-2.0 license. [Source repository](https://github.com/gleam-lang/json)

- From [2.0.0](#v-2-0-0) to [3.0.0](#v-3-0-0): 3 breaking changes in 1 version.
- From [0.2.0](#v-0-2-0) to [3.0.0](#v-3-0-0): 7 breaking changes in 3 versions.

## gleam_json 3.0.0 breaking changes

gleam_json 3.0.0, released May 13, 2025: 3 breaking changes.

- **Removed** `json.decode`  

The decode and decode_bits functions were removed because they relied on the deprecated gleam/dynamic API. Code calling them must be rewritten. [github.com](https://github.com/gleam-lang/json/blob/v3.0.0/CHANGELOG.md)
- **Removed** `json.decode_bits`  

The decode and decode_bits functions were removed because they relied on the deprecated gleam/dynamic API. Code calling them must be rewritten. [github.com](https://github.com/gleam-lang/json/blob/v3.0.0/CHANGELOG.md)
- **Removed** `json.UnexpectedFormat`  

The UnexpectedFormat variant was removed because it relied on the deprecated gleam/dynamic API. Code matching on it must be updated. [github.com](https://github.com/gleam-lang/json/blob/v3.0.0/CHANGELOG.md)

## gleam_json 2.0.0 breaking changes

gleam_json 2.0.0, released May 23, 2024: 3 breaking changes.

- **Configuration changed**  

The package now uses the built-in Erlang JSON library instead of Thoas, so it needs Erlang/OTP 27.0 or higher. Users on older Erlang/OTP versions must upgrade. [github.com](https://github.com/gleam-lang/json/blob/v2.0.0/CHANGELOG.md)
- **Signature changed** `UnexpectedByte`  

The UnexpectedByte error variant's arguments are no longer labelled, so code that uses those labels must be updated to positional patterns. [github.com](https://github.com/gleam-lang/json/blob/v2.0.0/CHANGELOG.md)
- **Signature changed** `UnexpectedSequence`  

The UnexpectedSequence error variant's arguments are no longer labelled, so code that uses those labels must be updated to positional patterns. [github.com](https://github.com/gleam-lang/json/blob/v2.0.0/CHANGELOG.md)

## gleam_json 0.3.0 breaking changes

gleam_json 0.3.0, released January 9, 2022: 1 breaking change.

- **Signature changed** `decode`  

The decode function's argument is now a gleam/dynamic.Decoder. Code that passes the old argument must be updated to supply a Decoder. [github.com](https://github.com/gleam-lang/json/blob/v0.3.0/CHANGELOG.md)

## gleam_json 0.2.0 breaking changes

gleam_json 0.2.0, released January 1, 2022: 3 breaking changes.

- **Removed** `encode`  

The encode function was removed. Use to_string or to_string_builder instead. [github.com](https://github.com/gleam-lang/json/blob/v0.2.0/CHANGELOG.md)
- **Removed** `list`  

The list function was removed. Use array or preprocessed_array instead. [github.com](https://github.com/gleam-lang/json/blob/v0.2.0/CHANGELOG.md)
- **Signature changed** `nullable`  

The nullable function now has argument labels. Check existing calls that depend on the previous signature. [github.com](https://github.com/gleam-lang/json/blob/v0.2.0/CHANGELOG.md)

## Related packages

- [gleam_erlang](https://since.dev/packages/hex/gleam%5Ferlang.md)
- [gleam_http](https://since.dev/packages/hex/gleam%5Fhttp.md)
- [gleam_javascript](https://since.dev/packages/hex/gleam%5Fjavascript.md)
- [gleam_otp](https://since.dev/packages/hex/gleam%5Fotp.md)
- [gleam_stdlib](https://since.dev/packages/hex/gleam%5Fstdlib.md)

## Check your code

These are the changes. To see which of them reach your code, [scan a public repository](https://since.dev/scan.md), or have your coding agent call `check_code` with your manifest or lockfile over [MCP](https://since.dev/docs.md#mcp). [The API](https://since.dev/docs.md#api) reads every change in every version. A fix pull request opens for the changes that reach a connected repository. Nothing merges or deploys.

## Put your code on continuous maintenance.

Scan a public repository now, or give your agent one line.

[Scan a repository](https://since.dev/scan.md). Any public GitHub repository. No sign-in.

### Tell your agent what changed since it was trained.

`claude mcp add --transport http since https://api.since.dev/mcp`

[Get an API key](https://app.since.dev/login?mode=signup)

Codex, Cursor and any MCP client use https://api.since.dev/mcp.

---

Every page on this site as Markdown: https://since.dev/sitemap.md. For agents: https://since.dev/llms.txt.
