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

Sanitize maps and lists for JSONObject consumption #4838

Merged
merged 3 commits into from
Oct 19, 2023
Merged

Conversation

labkey-adam
Copy link
Contributor

@labkey-adam labkey-adam commented Oct 18, 2023

Rationale

JSONObject constructors no longer accept +Infinity, -Infinity, or NaN values. These helper methods can be used to sanitize maps and lists, recursively replacing invalid values with JSON-legal ones. The methods aren't currently used, but they could be useful in the future.

Related Pull Requests

@labkey-adam labkey-adam merged commit 6bbc8ff into develop Oct 19, 2023
@labkey-adam labkey-adam deleted the fb_nab_nan branch October 19, 2023 20:11
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