package JSON::Color;
use 5.010001;
use strict;
use warnings;
our $AUTHORITY = 'cpan:PERLANCAR'; # AUTHORITY
our $DATE = '2023-07-02'; # DATE
our $DIST = 'JSON-Color'; # DIST
our $VERSION = '0.134';
keNumber; 1 } ? 1:0;
require Exporter;
our @ISA = qw(Exporter);
our @EXPORT_OK = qw(encode_json);
use Color::ANSI::Util qw(ansi_reset);
use ColorThemeRole::ANSI (); # for scan_prereqs
my %esc
elsif ($ref eq 'HASH') {
return _hash($data, $opts);
} elsif ($ref eq 'JSON::XS::Boolean' || $ref eq 'JSON::PP::Boolean') {
return _bool($data, $opts);
} elsif (!$ref) {
package ColorTheme::JSON::Color::default_ansi;
use strict;
use parent 'ColorThemeBase::Static::FromStructColors';
use Term::ANSIColor qw(:constants);
our $AUTHORITY = 'cpan:PERLANCAR'; # AUTHORITY
o
'2023-07-02'; # DATE
our $DIST = 'JSON-Color'; # DIST
our $VERSION = '0.134'; # VERSION
our %THEME = (
v => 2,
summary => 'The default color theme for JSON::Color, using ANSI codes',
ite
e default color theme for JSON::Color, using ANSI codes
__END__
=pod
=encoding UTF-8
=head1 NAME
ColorTheme::JSON::Color::default_ansi - The default color theme for JSON::Color, using ANSI codes
package ColorTheme::JSON::Color::default_rgb;
use strict;
use parent 'ColorThemeBase::Static::FromStructColors';
use Graphics::ColorNamesLite::WWW;
our $AUTHORITY = 'cpan:PERLANCAR'; # AUTHORITY
our
ST = 'JSON-Color'; # DIST
our $VERSION = '0.134'; # VERSION
my $t = $Graphics::ColorNamesLite::WWW::NAMES_RGB_TABLE;
our %THEME = (
v => 2,
summary => 'The default color theme for JSON::Colo
default color theme for JSON::Color, using RGB color codes
__END__
=pod
=encoding UTF-8
=head1 NAME
ColorTheme::JSON::Color::default_rgb - The default color theme for JSON::Color, using RGB color
eme::JSON::Color::bright256;
use strict;
use parent 'ColorThemeBase::Static::FromStructColors';
our $AUTHORITY = 'cpan:PERLANCAR'; # AUTHORITY
our $DATE = '2023-07-02'; # DATE
our $DIST = 'JSON-Colo
:JSON::Color::bright256 - A brighter color theme for 256-color terminal, adapted from the Data::Dump::Color::Default256 theme
=head1 VERSION
This document describes version 0.134 of ColorTheme::JSON
::bright256 (from Perl distribution JSON-Color), released on 2023-07-02.
=head1 HOMEPAGE
Please visit the project's homepage at L<https://metacpan.org/release/JSON-Color>.
=head1 SOURCE
Source rep