Skip to content

Don't attempt to deserialize data column if it's an empty string#739

Merged
adam12 merged 1 commit intomasterfrom
issue-718/empty-string-json-parse-error
Oct 10, 2025
Merged

Don't attempt to deserialize data column if it's an empty string#739
adam12 merged 1 commit intomasterfrom
issue-718/empty-string-json-parse-error

Conversation

@adam12
Copy link
Contributor

@adam12 adam12 commented Oct 10, 2025

When the column consists of an empty string, a JSON::ParserError is raised.

Instead of attempting to deserialize the empty string, just return nil.

Closes #718

When the column consists of an empty string, a JSON::ParserError is
raised.

Instead of attempting to deserialize the empty string, just return nil.

Closes #718
@adam12 adam12 merged commit f812faa into master Oct 10, 2025
8 of 9 checks passed
@adam12 adam12 deleted the issue-718/empty-string-json-parse-error branch October 10, 2025 16:29
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.

ruby 3.4.2 and rails 7.2 JSON::ParserError

1 participant