Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement legacy support for quoted nulls #86

Merged
merged 1 commit into from
Dec 24, 2024
Merged

Conversation

dsnet
Copy link
Collaborator

@dsnet dsnet commented Dec 23, 2024

When the string option is used, a JSON null quoted within a JSON string is a valid substitute for a JSON null.

// within the pointer value, rather than the indirect value.
//
// TODO: This does not handle correctly handle escaped nulls
// (e.g., "\u006e\u0075\u006c\u006c"), but is good enough
Copy link
Collaborator

Choose a reason for hiding this comment

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

I would be really, really surprised if anyone did this...

v1/options.go Outdated Show resolved Hide resolved
arshal_default.go Outdated Show resolved Hide resolved
When the `string` option is used, a JSON null quoted within a JSON string
is a valid substitute for a JSON null.
@dsnet dsnet force-pushed the legacy-quoted-null branch from 09400ea to 3a8938c Compare December 23, 2024 23:54
@dsnet dsnet merged commit 9a1dc60 into master Dec 24, 2024
8 checks passed
@dsnet dsnet deleted the legacy-quoted-null branch December 24, 2024 00:01
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.

3 participants