Device::Firewall::PaloAlto::JSON - JSON parent class for Device::Firewall::PaloAlto modules.
version 0.1.9
use parent qw(Device::Firewall::PaloAlto::JSON);
This module should be used as a parent to allow the module to output a JSON representation of the object.
# Output the ARP table to STDOUT $fw->op->arp_table->to_json; # Output the interfaces to the file 'interfaces.json' $fw->op->interfaces->to_json('interfaces.json');
A sub can chose to override this sub which gives it a chance to transform the data structures before it's output to JSON.
The returned data structure will be transformed directly to JSON.
If the sub isn't overridden, the default behaviour is to return an unblessed '$self'.
Greg Foletta <greg@foletta.org>
This software is copyright (c) 2019 by Greg Foletta.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
To install Device::Firewall::PaloAlto, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Device::Firewall::PaloAlto
CPAN shell
perl -MCPAN -e shell install Device::Firewall::PaloAlto
For more information on module installation, please visit the detailed CPAN module installation guide.