Skip to content

[Dependency] Bump json from 3.0.2 to 3.2.0 - #805

Open
dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/bundler/json-3.2.0
Open

dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/bundler/json-3.2.0

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Nov 27, 2026

Copy link
Copy Markdown
Contributor

Bumps json from 3.0.2 to 3.2.0.

Release notes

Sourced from json's releases.

v3.2.0

What's Changed

  • The script_safe: true option of JSON.generate no longer escapes forward slashes /, and instead escapes script tag openings (<script), script tag closing (</script) and HTML comments (<!--) as recommended by the HTML spec.
  • The script_safe: true option of JSON.generate no longer escapes U+2028 and U+2029 given that Javascript is now a proper subset of JSON since many years (see: https://github.com/tc39/proposal-json-superset).
  • Fix JSON::ParserError#json_path raising NoMethodError when the document was parsed with symbolize_names: true.
  • Fix JSON.generate not detecting duplicate keys such as { "1" => 1, 1 => 2 }.
  • JRuby: raise TypeError when a String subclass used as a Hash key has a to_s that doesn't return a String, like the C extension.
  • JRuby and TruffleRuby: fix a stack overflow in JSON::Coder when as_json returns a Symbol for a string with invalid encoding.
  • JRuby: fix JSON::Coder (and any frozen JSON::State) not being thread-safe. Each #dump call now uses its own nesting depth instead of mutating the shared state, which under concurrent use could make every later call raise JSON::NestingError.

Full Changelog: ruby/json@v3.1.0...v3.2.0

v3.1.0

What's Changed

  • Added rfc8785 generator option to canonicalize the output. Replaces the json-canonicalization with numerous correctness fixes.
  • Use the rb_len_t type introduced in Ruby 4.1 to allow for proper 64bit support on LP64 platforms (Windows).
  • JRuby: parser errors now include the position (line, column and the message suffix) as well as json_path, matching the C extension.
  • Improved the accuracy of parser error's line, column and snipets in presence of multibyte characters.
  • Fix JSON.load to work correctly when provided a Zlib::GzipReader as IO source.
  • Reject non-ASCII BINARY strings during JSON generation. This was deprecated since a long time and scheduled to be removed for 3.0.

Full Changelog: ruby/json@v3.0.2...v3.1.0

Changelog

Sourced from json's changelog.

2026-11-24 (3.2.0)

  • The script_safe: true option of JSON.generate no longer escapes forward slashes /, and instead escapes script tag openings (<script), script tag closing (</script) and HTML comments (<!--) as recommended by the HTML spec.
  • The script_safe: true option of JSON.generate no longer escapes U+2028 and U+2029 given that Javascript is now a proper subset of JSON since many years (see: https://github.com/tc39/proposal-json-superset).
  • Fix JSON::ParserError#json_path raising NoMethodError when the document was parsed with symbolize_names: true.
  • Fix JSON.generate not detecting duplicate keys such as { "1" => 1, 1 => 2 }.
  • JRuby: raise TypeError when a String subclass used as a Hash key has a to_s that doesn't return a String, like the C extension.
  • JRuby and TruffleRuby: fix a stack overflow in JSON::Coder when as_json returns a Symbol for a string with invalid encoding.
  • JRuby: fix JSON::Coder (and any frozen JSON::State) not being thread-safe. Each #dump call now uses its own nesting depth instead of mutating the shared state, which under concurrent use could make every later call raise JSON::NestingError.

2026-10-13 (3.1.0)

  • Added rfc8785 generator option to canonicalize the output. Replaces the json-canonicalization with numerous correctness fixes.
  • Use the rb_len_t type introduced in Ruby 4.1 to allow for proper 64bit support on LP64 platforms (Windows).
  • JRuby: parser errors now include the position (line, column and the message suffix) as well as json_path, matching the C extension.
  • Improved the accuracy of parser error's line, column and snipets in presence of multibyte characters.
  • Fix JSON.load to work correctly when provided a Zlib::GzipReader as IO source.
  • Reject non-ASCII BINARY strings during JSON generation. This was deprecated since a long time and scheduled to be removed for 3.0.
Commits
  • 91f1849 Release 3.2.0
  • 5a75bc2 [DOC] Fix headings
  • fb1694b Correct the 2.18.3 changelog
  • 1955c7d Avoid deep Array#== in test_spill_frames_stack
  • 442dadb Fix handling of JRuby shared string in script_safe mode
  • c6f5858 script_safe: fix escaping of ", \ and control characters
  • 889c06a Better handle combined html_safe and ascii_only
  • 4cbbbf9 JRuby: fix < escaping with script_safe and ascii_only
  • fd4a8b4 generator.c: optimize unsafe_html_tag_p2
  • 29d1051 script_safe: compare case insensitively
  • Additional commits viewable in compare view

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Bumps [json](https://github.com/ruby/json) from 3.0.2 to 3.2.0.
- [Release notes](https://github.com/ruby/json/releases)
- [Changelog](https://github.com/ruby/json/blob/master/CHANGES.md)
- [Commits](ruby/json@v3.0.2...v3.2.0)

---
updated-dependencies:
- dependency-name: json
  dependency-version: 3.2.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot Bot added dependencies Pull requests that update a dependency file ruby Pull requests that update ruby code labels Nov 27, 2026
@github-project-automation github-project-automation Bot moved this to Seeking Reviewer in Submitty Development Nov 27, 2026

This branch has not been deployed

No deployments
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 ruby Pull requests that update ruby code

Projects

Status: Seeking Reviewer

Development

Successfully merging this pull request may close these issues.

0 participants