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

stop trying to call JSON->import for JSON::PP #3

Merged
merged 2 commits into from
Sep 9, 2023

Conversation

haarg
Copy link

@haarg haarg commented Jul 21, 2023

The configuration for JSON::PP was copying the configuration for JSON v2. This would mostly work, but included a call to JSON->import to configure the module. Up until now, that import call would just be ignored if JSON.pm was not loaded, but future versions of perl will
start warning or dying for that.

Instead, make the JSON.pm v2 configuration a copy of JSON::PP, but wrapping the create_object sub to add the import call.

The configuration for JSON::PP was copying the configuration for JSON
v2. This would mostly work, but included a call to JSON->import to
configure the module. Up until now, that import call would just be
ignored if JSON.pm was not loaded, but future versions of perl will
start warning or dying for that.

Instead, make the JSON.pm v2 configuration a copy of JSON::PP, but
wrapping the create_object sub to add the import call.
@karenetheridge karenetheridge merged commit afc07c3 into karenetheridge:master Sep 9, 2023
@karenetheridge
Copy link
Owner

thanks, released in version 1.40.

@haarg haarg deleted the fix-import-call branch September 9, 2023 23:23
@haarg haarg restored the fix-import-call branch September 9, 2023 23:23
@haarg haarg deleted the fix-import-call branch September 9, 2023 23:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants