Skip to content

chore: use more explicit error handling with json_encode#437

Merged
Minishlink merged 1 commit intoweb-push-libs:masterfrom
Rotzbua:chore_json_encode
Dec 23, 2025
Merged

chore: use more explicit error handling with json_encode#437
Minishlink merged 1 commit intoweb-push-libs:masterfrom
Rotzbua:chore_json_encode

Conversation

@Rotzbua
Copy link
Contributor

@Rotzbua Rotzbua commented Dec 22, 2025

Remove JSON_NUMERIC_CHECK because setting enables autocasting which is not intended and can cause random runtime errors(?). According to documentation: Encodes numeric strings as numbers.

Remove `JSON_NUMERIC_CHECK` because setting enables autocasting which is not intended and can cause random runtime errors.
According to documentation: `Encodes numeric strings as numbers.`
Copy link
Member

@Minishlink Minishlink left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@Minishlink Minishlink merged commit a368e42 into web-push-libs:master Dec 23, 2025
12 checks passed
@Rotzbua Rotzbua deleted the chore_json_encode branch December 23, 2025 20:58
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.

2 participants