Skip to content

Switch from JSON::XS::VersionOneAndTwo to JSON::XS - #1619

Merged
michaelherger merged 2 commits into
LMS-Community:public/9.2from
mavit:json-xs-versiononeandtwo
Jul 26, 2026
Merged

Switch from JSON::XS::VersionOneAndTwo to JSON::XS#1619
michaelherger merged 2 commits into
LMS-Community:public/9.2from
mavit:json-xs-versiononeandtwo

Conversation

@mavit

@mavit mavit commented Jul 22, 2026

Copy link
Copy Markdown
Contributor

The purpose of JSON::XS::VersionOneAndTwo is to provide compatibility with the API of versions of JSON::XS earlier than 2.01 (released 2007). However, we know we have at least version 2.3 of JSON::XS, since that’s what we specify in modules.conf.

I would like to go further and remove JSON::XS::VersionOneAndTwo from modules.conf and the CPAN/ directory, but I hesitate, because it seems like something that third-party plugins might expect to be available.

Relates to #138.

@mavit
mavit force-pushed the json-xs-versiononeandtwo branch from 1e7445f to 18081c2 Compare July 22, 2026 13:57
The purpose of `JSON::XS::VersionOneAndTwo` is to provide compatibility with the API of versions of `JSON::XS` earlier than 2.01 (released 2007).  However, we know we have at least version 2.3 of `JSON::XS`, since that’s what we specify in `modules.conf`.

I would like to go further and remove `JSON::XS::VersionOneAndTwo` from `modules.conf` and the `CPAN/` directory, but I hesitate, because it seems like something that third-party plugins might expect to be available.

Signed-off-by: Peter Oliver <git@mavit.org.uk>
@mavit
mavit force-pushed the json-xs-versiononeandtwo branch from 18081c2 to 5e99a54 Compare July 22, 2026 13:57
@michaelherger

Copy link
Copy Markdown
Member

Yeah, 3rd party plugins might be a problem. I've stuck to using that module, too. Will change on my side to lead by example 😁.

Comment thread Slim/Control/Queries.pm
Comment thread Slim/Menu/BrowseLibrary.pm
Comment thread Slim/Plugin/RemoteLibrary/ProtocolHandler.pm
Comment thread Slim/Utils/Prefs/Base.pm

@michaelherger michaelherger left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Could you please remove the unused imports? Thanks!

Comment thread Slim/Web/Time.pm
As calculated by `perlimports`.

Signed-off-by: Peter Oliver <git@mavit.org.uk>
@mavit
mavit force-pushed the json-xs-versiononeandtwo branch from d98a1da to 3d85b10 Compare July 26, 2026 14:04
@michaelherger
michaelherger merged commit 5044853 into LMS-Community:public/9.2 Jul 26, 2026
1 check passed
@michaelherger

Copy link
Copy Markdown
Member

Thanks a lot!

bungh0l10 added a commit to bungh0l10/twitchaudio that referenced this pull request Jul 26, 2026
@mavit
mavit deleted the json-xs-versiononeandtwo branch July 27, 2026 09:40
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