Files
zoneminder/scripts/ZoneMinder/lib/ZoneMinder/Control
Nic BoetandClaude Opus 5.5 fb534131f8 fix: load JSON through JSON::MaybeXS in Reolink_HTTP, Uniview and jsonLoad
Reolink_HTTP.pm and Uniview.pm said `use JSON`, and
ZoneMinder::General::jsonLoad required JSON. The Debian and Ubuntu
packages depend on libjson-maybexs-perl, not libjson-perl, so on a
packaged install neither control module loads ("Can't locate JSON.pm in
@INC") and jsonLoad, which reads MacVendors.json for the network scan,
logs that error and returns nothing.

Use JSON::MaybeXS as the other control modules (AMLink, Dahua_RPC,
IPSpeaker) and the rest of ZoneMinder::General already do. encode_json
and decode_json behave the same; JSON::MaybeXS picks Cpanel::JSON::XS,
JSON::XS or the core JSON::PP.

tests/perl/test_json_maybexs.pl hides JSON.pm from @INC and loads both
modules and runs jsonLoad.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-12 11:24:24 -05:00
..
2026-02-02 14:37:57 +00:00
2021-09-08 15:18:52 +02:00
2018-11-15 20:00:53 -06:00
2023-07-05 01:03:48 +02:00