summaryrefslogtreecommitdiff
path: root/ext/json/lib
AgeCommit message (Collapse)Author
2025-12-26[ruby/json] Add missing documentation for `allow_control_characters` parsing ↵Jean Boussier
option https://github.com/ruby/json/commit/a5c160f372
2025-12-11[ruby/json] Release 2.18.0Jean Boussier
https://github.com/ruby/json/commit/1cdd2122d5
2025-12-04[ruby/json] Release 2.17.1Jean Boussier
https://github.com/ruby/json/commit/e5e4fd558e
2025-12-03[ruby/json] Release 2.17.0Jean Boussier
https://github.com/ruby/json/commit/4bdb2d14fe
2025-12-03[ruby/json] Fix handling of depthÉtienne Barrié
https://github.com/ruby/json/commit/ccca602274
2025-12-03[ruby/json] Improve `JSON.load` and `JSON.unsafe_load` to allow passing ↵Jean Boussier
options as second argument Otherwise it's very error prone. https://github.com/ruby/json/commit/c54de70f90
2025-11-21[ruby/json] Ractor-shareable JSON::CoderÉtienne Barrié
https://github.com/ruby/json/commit/58d60d6b76
2025-11-07[ruby/json] Release 2.16.0Jean Boussier
https://github.com/ruby/json/commit/5a12067f88
2025-11-07[ruby/json] Deprecate `JSON::State#[]` and `JSON::State#[]=`Jean Boussier
This prevent from freezing and sharing state instances. If you needs some sort of arguments or extra state to the generator methods, consider using `JSON::Coder` instead. https://github.com/ruby/json/commit/e9fbc8937f
2025-11-07[ruby/json] Get rid of JSON.deep_const_get (private API)Jean Boussier
https://github.com/ruby/json/commit/826cb2a4f4
2025-10-25[ruby/json] Release 2.15.2Jean Boussier
https://github.com/ruby/json/commit/5e61cd7dce
2025-10-07[ruby/json] Release 2.15.1Jean Boussier
https://github.com/ruby/json/commit/9e6067bb55
2025-10-02[ruby/json] Release 2.15.0Jean Boussier
https://github.com/ruby/json/commit/4abfad090d
2025-09-19[ruby/json] Release 2.14.1Jean Boussier
https://github.com/ruby/json/commit/51ce76ea66
2025-09-19[ruby/json] Release 2.14.0Jean Boussier
https://github.com/ruby/json/commit/55552cafe2
2025-09-11[ruby/json] Stop checking for OpenStruct#[] and #[]=Étienne Barrié
https://github.com/ruby/json/commit/3232e8df41 Co-authored-by: Jean Boussier <jean.boussier@gmail.com>
2025-09-11[ruby/json] Fix deprecation warning backtraceÉtienne Barrié
The gem root was including the test/ directory, so lines from tests were skipped, and the deprecation warnings were shown as coming from the test framework. https://github.com/ruby/json/commit/2ec31a7363 Co-authored-by: Jean Boussier <jean.boussier@gmail.com>
2025-09-11[ruby/json] Don't call json_create if json_creatable? returns falseÉtienne Barrié
Fix https://github.com/ruby/json/commit/f411ddf1ceaf https://github.com/ruby/json/commit/1397bf8cc9 Co-authored-by: Jean Boussier <jean.boussier@gmail.com>
2025-09-03[ruby/json] Update method docs for JSON.load and JSON.unsafe_load to show ↵Robin Miller
the correct use of proc argument. https://github.com/ruby/json/commit/92654cd99b
2025-09-03[ruby/json] Added testing for JSON.unsafe_load. Fixes NoMethodErrorRobin Miller
when passing proc to JSON.unsafe_load, matching the changes made in https://github.com/ruby/json/commit/73d2137fd3ad. https://github.com/ruby/json/commit/77292cbc9b
2025-08-27JSON.generate: warn or raise on duplicated keyJean Boussier
Because both strings and symbols keys are serialized the same, it always has been possible to generate documents with duplicated keys: ```ruby >> puts JSON.generate({ foo: 1, "foo" => 2 }) {"foo":1,"foo":2} ``` This is pretty much always a mistake and can cause various issues because it's not guaranteed how various JSON parsers will handle this. Until now I didn't think it was possible to catch such case without tanking performance, hence why I only made the parser more strict. But I finally found a way to check for duplicated keys cheaply enough.
2025-08-27[ruby/json] Improve generation options documentationJean Boussier
https://github.com/ruby/json/commit/3187c88c06
2025-08-27[ruby/json] Remove reference to fast_generateJean Boussier
https://github.com/ruby/json/commit/19bcfdd8d8
2025-08-18Fix typosDouglas Eichelberger
2025-08-18[ruby/json] Append newline at EOF [ci skip]Nobuyoshi Nakada
https://github.com/ruby/json/commit/72e231f929
2025-08-18[ruby/json] Remove trailing spaces [ci skip]Nobuyoshi Nakada
https://github.com/ruby/json/commit/2d2e0d403d
2025-08-04Only define `String.json_create` & al when `json/add` is requiredJean Boussier
All the `json/add` related methods for string were always defined unconditionally from the generators. It's preferable to only define them if `json/add` is actually used.
2025-07-29[ruby/json] Release 2.13.2Jean Boussier
https://github.com/ruby/json/commit/9e3efbfa22
2025-07-28[ruby/json] Improve deprecation warning location detectionJean Boussier
https://github.com/ruby/json/commit/132049bde2
2025-07-28[ruby/json] Fix duplicated key warning locationJean Boussier
Followup: https://github.com/ruby/json/pull/818 Now the warning should point at the `JSON.parse` caller, and not inside the json gem itself. https://github.com/ruby/json/commit/cd51557387
2025-07-25[ruby/json] Release 2.13.1Jean Boussier
https://github.com/ruby/json/commit/cfe9337eda
2025-07-18[ruby/json] Release 2.13.0Jean Boussier
https://github.com/ruby/json/commit/8d08494dee
2025-06-24[ruby/json] Deprecate duplicate keys in objectJean Boussier
There are few legitimate use cases for duplicate keys, and can in some case be exploited. Rather to always silently accept them, we should emit a warning, and in the future require to explictly allow them. https://github.com/ruby/json/commit/06f00a42e8
2025-06-24[ruby/json] Add missing parser options documentationJean Boussier
https://github.com/ruby/json/commit/eed753ffde
2025-06-17[ruby/json] Fix a typoNobuyoshi Nakada
ruby/ruby#13636 https://github.com/ruby/json/commit/6fc2c4b6ab Co-Authored-By: Tim Smith <tsmith84@gmail.com>
2025-05-26[ruby/json] Release 2.12.2Jean Boussier
https://github.com/ruby/json/commit/a29cb77d52
2025-05-26[ruby/json] Release 2.12.1Jean Boussier
https://github.com/ruby/json/commit/8603a57a91
2025-05-19[ruby/json] Remove some unnecessary top level constant lookupsJean Boussier
https://github.com/ruby/json/commit/7c03ffc3e0
2025-05-19[ruby/json] remove redundant `self.`GrantBirki
https://github.com/ruby/json/commit/c060943d04
2025-05-19[ruby/json] use `.` over `::` for consistencyGrantBirki
https://github.com/ruby/json/commit/f5c1b8c45d
2025-05-19[ruby/json] fix for pretty_generate throwing wrong number of arguments errorCody Horton
https://github.com/ruby/json/commit/8433571dcf
2025-05-13[ruby/json] Release 2.12.0Jean Boussier
https://github.com/ruby/json/commit/41f1f6939d Notes: Merged: https://github.com/ruby/ruby/pull/13310
2025-05-13[ruby/json] parser.c: include line and column in error messagesJean Boussier
https://github.com/ruby/json/commit/30e35b9ba5 Notes: Merged: https://github.com/ruby/ruby/pull/13310
2025-04-30[ruby/json] Release 2.11.3Jean Boussier
https://github.com/ruby/json/commit/3e025f76d7
2025-04-25[ruby/json] Release 2.11.2Jean Boussier
https://github.com/ruby/json/commit/c985e8c6ea
2025-04-25[ruby/json] Bring back JSON::PRETTY_STATE_PROTOTYPE with a deprecationJean Boussier
Fix: https://github.com/ruby/json/issues/788 `multi_json` rely on it, even though it was never documented as public API. Bringing it back as a method so it can emit a deprecation warning. https://github.com/ruby/json/commit/123121bba2
2025-04-25[ruby/json] Release 2.11.1Jean Boussier
https://github.com/ruby/json/commit/84443e881d
2025-04-25[ruby/json] Bring back the numerous deprecated aliasJean Boussier
This time with explicit deprecation warnings. https://github.com/ruby/json/commit/0dee9bdad9
2025-04-25[ruby/json] Release 2.11.0Jean Boussier
https://github.com/ruby/json/commit/a6949f8656
2025-04-22[ruby/json] Get rid of unused CircularDatastructure classJean Boussier
https://github.com/ruby/json/commit/92beca8032