Skip to content

chore: Bump github.com/goccy/go-json from 0.10.6 to 0.11.2 - #1357

Merged
zeroshade merged 1 commit into
mainfrom
dependabot/go_modules/github.com/goccy/go-json-0.11.2
Oct 27, 2026
Merged

zeroshade merged 1 commit into
mainfrom
dependabot/go_modules/github.com/goccy/go-json-0.11.2

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Oct 5, 2026 •

Copy link
Copy Markdown
Contributor

Bumps github.com/goccy/go-json from 0.10.6 to 0.11.2.

Release notes

Sourced from github.com/goccy/go-json's releases.

v0.11.2

What's Changed

Full Changelog: goccy/go-json@v0.11.1...v0.11.2

v0.11.1

What's Changed

  • Handle the reported pull requests: omitzero, nil TextMarshaler pointers, the generated-code marker and a godoc fix by @​goccy in goccy/go-json#671
  • Encoder: jump to one code of a large struct which is a value in many places by @​goccy in goccy/go-json#672

Full Changelog: goccy/go-json@v0.11.0...v0.11.1

v0.11.0

Highlights

  • Compatible with encoding/json of the Go version in use: values are decoded and encoded, and errors are reported (their types, messages and offsets), as encoding/json does, including Go 1.27, whose encoding/json is built on encoding/json/v2. Many reported compatibility issues are fixed.
  • Much faster: with the same behavior as encoding/json ( a live heap of 64 MB, geometric mean over the payloads of the report ), go-json decodes about 4.2–4.4x and encodes about 2.7–2.8x as fast as encoding/json, on amd64 and arm64 ( the results of this release are at https://goccy.github.io/go-json/ ).
  • A benchmark report of the JSON libraries of Go, measured on GitHub Actions for every change and published at https://goccy.github.io/go-json/: the libraries are compared by category of behavior ( the behavior of encoding/json, of encoding/json/v2, without HTML escaping, key sorting and string copying, and every library at its fastest ), which every run checks, and the result files are attested with GitHub Artifact Attestations.
  • No more go:linkname: go-json no longer links to the internals of the runtime or of reflect, so it builds with the restrictions of newer Go versions on go:linkname.

New APIs

  • MarshalOf[T]: encodes a value of type T without copying it to the heap ( #632 ).
  • UnmarshalOf[T]: decodes into a *T which may stay on the stack of the caller, without an allocation for the argument ( #658 ).
  • OptimizeFieldOrder(): lets the encoder order the fields of a struct as it encodes them fastest, when the order of the keys doesn't matter ( #646 ).
  • DecodeNoCopyString(): lets the decoded strings refer to the input instead of copying them ( #658 ).

Changes of behavior

These follow encoding/json, and may change what a program which relied on the previous behavior gets:

  • The values of the keys which match no field are validated: invalid JSON anywhere in the input is a syntax error, as with encoding/json ( #664 ).
  • Syntax errors and type errors are reported as encoding/json of the Go version reports them: their types, messages and offsets ( #661, #664 ).
  • A decoded string is a copy of its bytes, and doesn't keep the input alive; short strings share buffers of up to 16 KB ( #658 ). Use DecodeNoCopyString() to refer to the input instead.
  • The elements of an array are decoded into the existing elements of a slice, including the ones after its length within its capacity, as encoding/json does ( #666 ).
  • MarshalNoEscape and UnmarshalNoEscape are deprecated: use Marshal and UnmarshalOf ( #631, #658 ).

... (truncated)

Commits
  • 3ce7333 Raise the Go version of the module to 1.23 (#687)
  • cfcddf0 Encoder: escape strings of characters which are not ASCII faster when UTF-8 i...
  • 054ed21 Encoder: look at a short string and write it in one pass (#685)
  • 09cea77 CI: run the tests on a big-endian machine (s390x under QEMU) (#684)
  • 2df131e Encoder: find the quotes of a marshaler output in memory order on big-endian ...
  • 738c309 Encoder: write integers of up to sixteen digits by the lookups of their digit...
  • d7bede4 Encoder: sort the keys of a map with the comparisons inlined (#681)
  • c5f8edb Look the methods of the marshalers up by their names as constants (#680)
  • 0f0a08f Encoder: write the digits of an integer where they go in the buffer (#679)
  • d8cec74 Encoder: range over larger map values as words, and write the entries of a so...
  • Additional commits viewable in compare view

@dependabot dependabot Bot added dependencies Pull requests that update a dependency file go Pull requests that update Go code labels Oct 5, 2026
@dependabot
dependabot Bot requested a review from zeroshade as a code owner October 5, 2026 19:45
@dependabot
dependabot Bot force-pushed the dependabot/go_modules/github.com/goccy/go-json-0.11.2 branch 2 times, most recently from 3548d7b to 89834ca Compare October 6, 2026 14:27
@zeroshade

Copy link
Copy Markdown
Member

@dependabot rebase

@dependabot
dependabot Bot force-pushed the dependabot/go_modules/github.com/goccy/go-json-0.11.2 branch from 89834ca to 9f0e67b Compare October 13, 2026 13:50
@dependabot
dependabot Bot force-pushed the dependabot/go_modules/github.com/goccy/go-json-0.11.2 branch from 9f0e67b to 3ce07c5 Compare October 26, 2026 20:36
zeroshade added a commit that referenced this pull request Oct 27, 2026
…#1428)

### Rationale for this change

The Dependabot bump of `github.com/goccy/go-json` to v0.11.2 (#1357)
fails CI. go-json 0.11 is stricter and follows `encoding/json`'s
behaviour for the Go version it is built with, which exposed three tests
that depended on lenient parsing or on backend-specific error details:

- `arrow/compute` `TestIsInDecimal`: the expected array literal is
`[true, false true]` (missing comma); go-json 0.10 accepted it.
- `arrow/array` `TestIntegerArrsJSON` and
`TestRecordBuilderUnmarshalOneReturnUnexpectedEOF`: under Go 1.27's v2
JSON semantics, truncated input is reported as a syntax error
("unexpected end of JSON input") instead of `io.ErrUnexpectedEOF`.
- `parquet/variant` `TestBuilderJSONErrors`: the error message depends
on which tokenizer call first notices the malformed input.

The last two already fail on `main` with the standard-library backend
(`-tags arrow_json_stdlib`, also used for TinyGo) under Go 1.27,
independent of the bump.

### What changes are included in this PR?

Test-only:

- Fix the JSON literal in `TestIsInDecimal`.
- A helper `assertTruncatedJSONError` checks that truncated input is an
error and **not** a clean `io.EOF` — the invariant #1341 added — while
accepting either `io.ErrUnexpectedEOF` or an "unexpected end of JSON
input" syntax error.
- `TestBuilderJSONErrors` keeps all its malformed inputs but only checks
that `ParseJSON` rejects them.

### Are these changes tested?

The affected packages (`arrow/array`, `arrow/compute`,
`parquet/variant`) pass with Go 1.26 and Go 1.27, each with go-json
v0.10.6, go-json v0.11.2 and `-tags arrow_json_stdlib`. Disabling the
`io.EOF` → `io.ErrUnexpectedEOF` conversion in
`RecordBuilder.unmarshalOne` still fails
`TestRecordBuilderUnmarshalOneReturnUnexpectedEOF` ("truncated input
must not be reported as a clean EOF").

### Are there any user-facing changes?

No.
@zeroshade

Copy link
Copy Markdown
Member

@dependabot rebase

Bumps [github.com/goccy/go-json](https://github.com/goccy/go-json) from 0.10.6 to 0.11.2.
- [Release notes](https://github.com/goccy/go-json/releases)
- [Changelog](https://github.com/goccy/go-json/blob/master/CHANGELOG.md)
- [Commits](goccy/go-json@v0.10.6...v0.11.2)

---
updated-dependencies:
- dependency-name: github.com/goccy/go-json
  dependency-version: 0.11.2
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
@dependabot
dependabot Bot force-pushed the dependabot/go_modules/github.com/goccy/go-json-0.11.2 branch from 3ce07c5 to 47e92df Compare October 27, 2026 17:22
@zeroshade
zeroshade merged commit 7056c5f into main Oct 27, 2026
23 checks passed
@zeroshade
zeroshade deleted the dependabot/go_modules/github.com/goccy/go-json-0.11.2 branch October 27, 2026 17:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file go Pull requests that update Go code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant