Lazy dependency loading + JSON instead of JSON::PP

RT#82883: https://rt.cpan.org/Ticket/Display.html?id=82883
RT#82886: https://rt.cpan.org/Ticket/Display.html?id=82886