Skip to content

Support json 3 - #452

Open
marciotoshio wants to merge 1 commit into
que-rb:masterfrom
marciotoshio:json-3-support
Open

marciotoshio wants to merge 1 commit into
que-rb:masterfrom
marciotoshio:json-3-support

Conversation

@marciotoshio

Copy link
Copy Markdown

json 3.0 removed the create_additions and quirks_mode options, so passing them raises ArgumentError. Que.deserialize_json passed create_additions: false, which broke deserializing every job's args.

create_additions already defaults to false in JSON.parse on json 2, and quirks_mode has had no effect since json 2.0, so dropping both keeps behaviour unchanged on json 2.

json 3.0 removed the create_additions and quirks_mode options, so
passing them raises ArgumentError. Que.deserialize_json passed
create_additions: false, which broke deserializing every job's args.

create_additions already defaults to false in JSON.parse on json 2, and
quirks_mode has had no effect since json 2.0, so dropping both keeps
behaviour unchanged on json 2.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant